Mercurial > hg > truffle
comparison src/share/vm/services/memTracker.hpp @ 6231:7e5976e66c62
7182543: NMT ON: Aggregate a few NMT related bugs
Summary: 1) Fixed MemTrackWorker::generations_in_used() calculation 2) Ensured NMT not to leak memory recorders after shutdown 3) Used ThreadCritical to block safepoint safe threads
Reviewed-by: acorn, coleenp, dholmes, kvn
author | zgu |
---|---|
date | Thu, 19 Jul 2012 09:05:42 -0400 |
parents | d2a62e0f25eb |
children | d5bc62fcfac7 |
comparison
equal
deleted
inserted
replaced
6201:ace99a6ffc83 | 6231:7e5976e66c62 |
---|---|
324 // one available | 324 // one available |
325 static MemRecorder* get_new_or_pooled_instance(); | 325 static MemRecorder* get_new_or_pooled_instance(); |
326 static void create_memory_record(address addr, MEMFLAGS type, | 326 static void create_memory_record(address addr, MEMFLAGS type, |
327 size_t size, address pc, Thread* thread); | 327 size_t size, address pc, Thread* thread); |
328 static void create_record_in_recorder(address addr, MEMFLAGS type, | 328 static void create_record_in_recorder(address addr, MEMFLAGS type, |
329 size_t size, address pc, Thread* thread); | 329 size_t size, address pc, JavaThread* thread); |
330 | 330 |
331 private: | 331 private: |
332 // global memory snapshot | 332 // global memory snapshot |
333 static MemSnapshot* _snapshot; | 333 static MemSnapshot* _snapshot; |
334 | 334 |