src/hotspot/share/services/memTracker.hpp
changeset 49349 7194eb9e8f19
parent 49193 c3ec048aad63
child 49746 b17256b5c047
equal deleted inserted replaced
49348:fde3feaaa4ed 49349:7194eb9e8f19
   244   static inline void record_thread_stack(void* addr, size_t size) {
   244   static inline void record_thread_stack(void* addr, size_t size) {
   245     if (tracking_level() < NMT_summary) return;
   245     if (tracking_level() < NMT_summary) return;
   246     if (addr != NULL) {
   246     if (addr != NULL) {
   247       // uses thread stack malloc slot for book keeping number of threads
   247       // uses thread stack malloc slot for book keeping number of threads
   248       MallocMemorySummary::record_malloc(0, mtThreadStack);
   248       MallocMemorySummary::record_malloc(0, mtThreadStack);
   249       record_virtual_memory_reserve(addr, size, CALLER_PC, mtThreadStack);
   249       record_virtual_memory_reserve_and_commit(addr, size, CALLER_PC, mtThreadStack);
   250     }
   250     }
   251   }
   251   }
   252 
   252 
   253   static inline void release_thread_stack(void* addr, size_t size) {
   253   static inline void release_thread_stack(void* addr, size_t size) {
   254     if (tracking_level() < NMT_summary) return;
   254     if (tracking_level() < NMT_summary) return;