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:
parent
35be90b3a1
commit
1e248013f7
1 changed files with 2 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue