From 1e248013f7b1bbbd56c5e2d449405b6aaeaeaf3e Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Thu, 7 Mar 2019 15:52:06 +0100 Subject: [PATCH] chore(runtime/alloc): don't init heap if LEAN_SMALL_ALLOCATOR is off makes tracking down leaks a bit nicer --- src/runtime/alloc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime/alloc.cpp b/src/runtime/alloc.cpp index 4c31564813..48e2faab5b 100644 --- a/src/runtime/alloc.cpp +++ b/src/runtime/alloc.cpp @@ -411,8 +411,10 @@ void dealloc(void * o, size_t sz) { } void initialize_alloc() { +#ifdef LEAN_SMALL_ALLOCATOR g_heap_manager = new heap_manager(); init_heap(true); +#endif } void finalize_alloc() {