equal
deleted
inserted
replaced
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; |