comparison src/share/vm/services/memTracker.hpp @ 14412:e2722a66aba7

Merge
author kvn
date Thu, 05 Sep 2013 11:04:39 -0700
parents 4c84d351cca9
children 833b0f92429a
comparison
equal deleted inserted replaced
14411:bdd155477289 14412:e2722a66aba7
85 MEMFLAGS flags, address pc = 0, Thread* thread = NULL) { } 85 MEMFLAGS flags, address pc = 0, Thread* thread = NULL) { }
86 static inline void record_virtual_memory_reserve_and_commit(address addr, size_t size, 86 static inline void record_virtual_memory_reserve_and_commit(address addr, size_t size,
87 MEMFLAGS flags, address pc = 0, Thread* thread = NULL) { } 87 MEMFLAGS flags, address pc = 0, Thread* thread = NULL) { }
88 static inline void record_virtual_memory_commit(address addr, size_t size, 88 static inline void record_virtual_memory_commit(address addr, size_t size,
89 address pc = 0, Thread* thread = NULL) { } 89 address pc = 0, Thread* thread = NULL) { }
90 static inline void record_virtual_memory_release(address addr, size_t size,
91 Thread* thread = NULL) { }
90 static inline void record_virtual_memory_type(address base, MEMFLAGS flags, 92 static inline void record_virtual_memory_type(address base, MEMFLAGS flags,
91 Thread* thread = NULL) { } 93 Thread* thread = NULL) { }
92 static inline Tracker get_realloc_tracker() { return _tkr; } 94 static inline Tracker get_realloc_tracker() { return _tkr; }
93 static inline Tracker get_virtual_memory_uncommit_tracker() { return _tkr; } 95 static inline Tracker get_virtual_memory_uncommit_tracker() { return _tkr; }
94 static inline Tracker get_virtual_memory_release_tracker() { return _tkr; } 96 static inline Tracker get_virtual_memory_release_tracker() { return _tkr; }
370 MEMFLAGS flags, address pc, Thread* thread = NULL) { 372 MEMFLAGS flags, address pc, Thread* thread = NULL) {
371 Tracker tkr(Tracker::ReserveAndCommit, thread); 373 Tracker tkr(Tracker::ReserveAndCommit, thread);
372 tkr.record(addr, size, flags, pc); 374 tkr.record(addr, size, flags, pc);
373 } 375 }
374 376
377 static inline void record_virtual_memory_release(address addr, size_t size,
378 Thread* thread = NULL) {
379 if (is_on()) {
380 Tracker tkr(Tracker::Release, thread);
381 tkr.record(addr, size);
382 }
383 }
375 384
376 // record memory type on virtual memory base address 385 // record memory type on virtual memory base address
377 static inline void record_virtual_memory_type(address base, MEMFLAGS flags, 386 static inline void record_virtual_memory_type(address base, MEMFLAGS flags,
378 Thread* thread = NULL) { 387 Thread* thread = NULL) {
379 Tracker tkr(Tracker::Type); 388 Tracker tkr(Tracker::Type);