src/os/bsd/vm/perfMemory_bsd.cpp

changeset 7074
833b0f92429a
parent 6680
78bbf4d43a14
child 7495
42f27b59c550
child 7709
5ca2ea5eeff0
equal deleted inserted replaced
7073:4d3a43351904 7074:833b0f92429a
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, mtInternal, CURRENT_PC); 756 MemTracker::record_virtual_memory_reserve_and_commit((address)mapAddress, size, CURRENT_PC, mtInternal);
757 757
758 return mapAddress; 758 return mapAddress;
759 } 759 }
760 760
761 // release a named shared memory region 761 // release a named shared memory region
916 THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(), 916 THROW_MSG(vmSymbols::java_lang_OutOfMemoryError(),
917 "Could not map PerfMemory"); 917 "Could not map PerfMemory");
918 } 918 }
919 919
920 // it does not go through os api, the operation has to record from here 920 // it does not go through os api, the operation has to record from here
921 MemTracker::record_virtual_memory_reserve((address)mapAddress, size, mtInternal, CURRENT_PC); 921 MemTracker::record_virtual_memory_reserve_and_commit((address)mapAddress, size, CURRENT_PC, mtInternal);
922 922
923 *addr = mapAddress; 923 *addr = mapAddress;
924 *sizep = size; 924 *sizep = size;
925 925
926 if (PerfTraceMemOps) { 926 if (PerfTraceMemOps) {

mercurial