hotspot/src/os/linux/vm/perfMemory_linux.cpp
changeset 18086 f44cf213a775
parent 18078 10417cf9967d
child 22745 4acf6ad4c462
--- a/hotspot/src/os/linux/vm/perfMemory_linux.cpp	Mon Jun 10 10:45:19 2013 -0400
+++ b/hotspot/src/os/linux/vm/perfMemory_linux.cpp	Tue Jun 18 08:44:08 2013 -0400
@@ -753,8 +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, CURRENT_PC);
-  MemTracker::record_virtual_memory_type((address)mapAddress, mtInternal);
+  MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC);
 
   return mapAddress;
 }
@@ -917,8 +916,7 @@
   }
 
   // it does not go through os api, the operation has to record from here
-  MemTracker::record_virtual_memory_reserve((address)mapAddress, size, CURRENT_PC);
-  MemTracker::record_virtual_memory_type((address)mapAddress, mtInternal);
+  MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC);
 
   *addr = mapAddress;
   *sizep = size;