[haiku-commits] r35288 - haiku/trunk/src/system/kernel/slab

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 25 Jan 2010 20:51:53 +0100 (CET)

Author: bonefish
Date: 2010-01-25 20:51:53 +0100 (Mon, 25 Jan 2010)
New Revision: 35288
Changeset: http://dev.haiku-os.org/changeset/35288/haiku

Modified:
   haiku/trunk/src/system/kernel/slab/Slab.cpp
Log:
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.


Modified: haiku/trunk/src/system/kernel/slab/Slab.cpp
===================================================================
--- haiku/trunk/src/system/kernel/slab/Slab.cpp 2010-01-25 18:06:50 UTC (rev 
35287)
+++ haiku/trunk/src/system/kernel/slab/Slab.cpp 2010-01-25 19:51:53 UTC (rev 
35288)
@@ -724,10 +724,6 @@
        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 @@
 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");
 }
 
 


Other related posts:

  • » [haiku-commits] r35288 - haiku/trunk/src/system/kernel/slab - ingo_weinhold