src/share/vm/services/memTracker.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hsx-rt.8007074 Cdiff src/share/vm/services/memTracker.hpp

src/share/vm/services/memTracker.hpp

Print this page

        

*** 85,94 **** --- 85,96 ---- MEMFLAGS flags, address pc = 0, Thread* thread = NULL) { } static inline void record_virtual_memory_reserve_and_commit(address addr, size_t size, MEMFLAGS flags, address pc = 0, Thread* thread = NULL) { } static inline void record_virtual_memory_commit(address addr, size_t size, address pc = 0, Thread* thread = NULL) { } + static inline void record_virtual_memory_release(address addr, size_t size, + Thread* thread = NULL) { } static inline void record_virtual_memory_type(address base, MEMFLAGS flags, Thread* thread = NULL) { } static inline Tracker get_realloc_tracker() { return _tkr; } static inline Tracker get_virtual_memory_uncommit_tracker() { return _tkr; } static inline Tracker get_virtual_memory_release_tracker() { return _tkr; }
*** 370,379 **** --- 372,388 ---- MEMFLAGS flags, address pc, Thread* thread = NULL) { Tracker tkr(Tracker::ReserveAndCommit, thread); tkr.record(addr, size, flags, pc); } + static inline void record_virtual_memory_release(address addr, size_t size, + Thread* thread = NULL) { + if (is_on()) { + Tracker tkr(Tracker::Release, thread); + tkr.record(addr, size); + } + } // record memory type on virtual memory base address static inline void record_virtual_memory_type(address base, MEMFLAGS flags, Thread* thread = NULL) { Tracker tkr(Tracker::Type);
src/share/vm/services/memTracker.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File