hotspot/src/os/solaris/vm/perfMemory_solaris.cpp
changeset 25946 1572c9f03fb9
parent 22745 4acf6ad4c462
child 27007 3cacf4ad4fc9
--- a/hotspot/src/os/solaris/vm/perfMemory_solaris.cpp	Tue Aug 05 14:18:44 2014 +0000
+++ b/hotspot/src/os/solaris/vm/perfMemory_solaris.cpp	Thu Aug 07 12:18:58 2014 -0700
@@ -770,7 +770,8 @@
   (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;
 }
@@ -941,7 +942,8 @@
   }
 
   // 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;