chore(runtime/alloc): don't init heap if LEAN_SMALL_ALLOCATOR is off

makes tracking down leaks a bit nicer
This commit is contained in:
Sebastian Ullrich 2019-03-07 15:52:06 +01:00
parent 35be90b3a1
commit 1e248013f7

View file

@ -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() {