comparison src/os/solaris/vm/perfMemory_solaris.cpp @ 20360:833b0f92429a

8046598: Scalable Native memory tracking development Summary: Enhance scalability of native memory tracking Reviewed-by: coleenp, ctornqvi, gtriantafill
author zgu
date Wed, 27 Aug 2014 08:19:12 -0400
parents 7d28f4e15b61
children 42f27b59c550 5ca2ea5eeff0
comparison
equal deleted inserted replaced
20359:4d3a43351904 20360:833b0f92429a
768 768
769 // clear the shared memory region 769 // clear the shared memory region
770 (void)::memset((void*) mapAddress, 0, size); 770 (void)::memset((void*) mapAddress, 0, size);
771 771
772 // it does not go through os api, the operation has to record from here 772 // it does not go through os api, the operation has to record from here
773 MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC); 773 MemTracker::record_virtual_memory_reserve_and_commit((address)mapAddress,
774 size, CURRENT_PC, mtInternal);
774 775
775 return mapAddress; 776 return mapAddress;
776 } 777 }
777 778
778 // release a named shared memory region 779 // release a named shared memory region
939 THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(), 940 THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(),
940 "Could not map PerfMemory"); 941 "Could not map PerfMemory");
941 } 942 }
942 943
943 // it does not go through os api, the operation has to record from here 944 // it does not go through os api, the operation has to record from here
944 MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC); 945 MemTracker::record_virtual_memory_reserve_and_commit((address)mapAddress,
946 size, CURRENT_PC, mtInternal);
945 947
946 *addr = mapAddress; 948 *addr = mapAddress;
947 *sizep = size; 949 *sizep = size;
948 950
949 if (PerfTraceMemOps) { 951 if (PerfTraceMemOps) {