From 3b1439d03a1e603521ad95474483002238762eb2 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 29 Mar 2016 20:58:21 +1300 Subject: [PATCH] Use Mem::Init() to initialize for GetPool() --- src/mem/old_api.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mem/old_api.cc b/src/mem/old_api.cc index 3ef4419885..40c0d0b0af 100644 --- a/src/mem/old_api.cc +++ b/src/mem/old_api.cc @@ -70,6 +70,9 @@ GetPool(size_t type) if (!initialized) { memset(pools, '\0', sizeof(pools)); initialized = true; + // Mem::Init() makes use of GetPool(type) to initialize + // the actual pools. So must come after the flag is true + Mem::Init(); } return pools[type]; -- 2.47.3