hotspot/src/os/linux/vm/perfMemory_linux.cpp
changeset 18086 f44cf213a775
parent 18078 10417cf9967d
child 22745 4acf6ad4c462
equal deleted inserted replaced
18084:c2e807acd8c5 18086:f44cf213a775
   751 
   751 
   752   // clear the shared memory region
   752   // clear the shared memory region
   753   (void)::memset((void*) mapAddress, 0, size);
   753   (void)::memset((void*) mapAddress, 0, size);
   754 
   754 
   755   // it does not go through os api, the operation has to record from here
   755   // it does not go through os api, the operation has to record from here
   756   MemTracker::record_virtual_memory_reserve((address)mapAddress, size, CURRENT_PC);
   756   MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC);
   757   MemTracker::record_virtual_memory_type((address)mapAddress, mtInternal);
       
   758 
   757 
   759   return mapAddress;
   758   return mapAddress;
   760 }
   759 }
   761 
   760 
   762 // release a named shared memory region
   761 // release a named shared memory region
   915     THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(),
   914     THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(),
   916               "Could not map PerfMemory");
   915               "Could not map PerfMemory");
   917   }
   916   }
   918 
   917 
   919   // it does not go through os api, the operation has to record from here
   918   // it does not go through os api, the operation has to record from here
   920   MemTracker::record_virtual_memory_reserve((address)mapAddress, size, CURRENT_PC);
   919   MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC);
   921   MemTracker::record_virtual_memory_type((address)mapAddress, mtInternal);
       
   922 
   920 
   923   *addr = mapAddress;
   921   *addr = mapAddress;
   924   *sizep = size;
   922   *sizep = size;
   925 
   923 
   926   if (PerfTraceMemOps) {
   924   if (PerfTraceMemOps) {