hotspot/src/os/linux/vm/perfMemory_linux.cpp
changeset 25946 1572c9f03fb9
parent 24424 2658d7834c6e
child 27007 3cacf4ad4fc9
--- a/hotspot/src/os/linux/vm/perfMemory_linux.cpp	Tue Aug 05 14:18:44 2014 +0000
+++ b/hotspot/src/os/linux/vm/perfMemory_linux.cpp	Thu Aug 07 12:18:58 2014 -0700
@@ -753,7 +753,7 @@
   (void)::memset((void*) mapAddress, 0, size);
 
   // it does not go through os api, the operation has to record from here
-  MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC);
+  MemTracker::record_virtual_memory_reserve_and_commit((address)mapAddress, size, CURRENT_PC, mtInternal);
 
   return mapAddress;
 }
@@ -924,7 +924,7 @@
   }
 
   // it does not go through os api, the operation has to record from here
-  MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC);
+  MemTracker::record_virtual_memory_reserve_and_commit((address)mapAddress, size, CURRENT_PC, mtInternal);
 
   *addr = mapAddress;
   *sizep = size;