7182543: NMT ON: Aggregate a few NMT related bugs

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
This commit is contained in:
Zhengyu Gu 2012-07-19 09:05:42 -04:00
parent 559278381b
commit f9083712dd
5 changed files with 35 additions and 35 deletions

View file

@ -249,9 +249,9 @@ class MemRecorder : public CHeapObj<mtNMT|otNMTRecorder> {
SequencedRecordIterator pointer_itr();
public:
protected:
// number of MemRecorder instance
debug_only(static volatile jint _instance_count;)
static volatile jint _instance_count;
private:
// sorting function, sort records into following order