Mercurial > hg > truffle
comparison src/os/bsd/vm/perfMemory_bsd.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 | 78bbf4d43a14 |
children | 42f27b59c550 5ca2ea5eeff0 |
comparison
equal
deleted
inserted
replaced
20359:4d3a43351904 | 20360: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) { |