[haiku-commits] r37139 - haiku/trunk/src/system/kernel/vm

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 15 Jun 2010 01:59:38 +0200 (CEST)

Author: bonefish
Date: 2010-06-15 01:59:38 +0200 (Tue, 15 Jun 2010)
New Revision: 37139
Changeset: http://dev.haiku-os.org/changeset/37139/haiku

Modified:
   haiku/trunk/src/system/kernel/vm/VMAddressSpace.cpp
Log:
VMAddressSpace::_DumpListCommand(): Sum up also null-cache areas. Those are
used e.g. by the slab allocator. The interesting part is the address space
usage anyway.


Modified: haiku/trunk/src/system/kernel/vm/VMAddressSpace.cpp
===================================================================
--- haiku/trunk/src/system/kernel/vm/VMAddressSpace.cpp 2010-06-14 23:57:00 UTC 
(rev 37138)
+++ haiku/trunk/src/system/kernel/vm/VMAddressSpace.cpp 2010-06-14 23:59:38 UTC 
(rev 37139)
@@ -352,10 +352,8 @@
                off_t areaSize = 0;
                for (VMAddressSpace::AreaIterator areaIt = 
space->GetAreaIterator();
                                VMArea* area = areaIt.Next();) {
-                       if (area->cache->type != CACHE_TYPE_NULL) {
-                               areaCount++;
-                               areaSize += area->Size();
-                       }
+                       areaCount++;
+                       areaSize += area->Size();
                }
                kprintf("%p  %6" B_PRId32 "   %#010" B_PRIxADDR "   %#10" 
B_PRIxADDR
                        "   %10" B_PRId32 "   %10" B_PRIdOFF "\n", space, 
space->ID(),


Other related posts:

  • » [haiku-commits] r37139 - haiku/trunk/src/system/kernel/vm - ingo_weinhold