Moved added the debugger commands from slab_init() to slab_init_post_area().
Those use malloc(), which obviously doesn't work before the heap is initialized. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35288 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -724,10 +724,6 @@ slab_init(kernel_args* args)
|
||||
new (&sObjectCaches) ObjectCacheList();
|
||||
|
||||
block_allocator_init_boot();
|
||||
|
||||
add_debugger_command("slabs", dump_slabs, "list all object caches");
|
||||
add_debugger_command("slab_cache", dump_cache_info,
|
||||
"dump information about a specific object cache");
|
||||
}
|
||||
|
||||
|
||||
@@ -735,6 +731,10 @@ void
|
||||
slab_init_post_area()
|
||||
{
|
||||
MemoryManager::InitPostArea();
|
||||
|
||||
add_debugger_command("slabs", dump_slabs, "list all object caches");
|
||||
add_debugger_command("slab_cache", dump_cache_info,
|
||||
"dump information about a specific object cache");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user