comparison src/share/vm/memory/heapInspection.hpp @ 3465:d2a62e0f25eb

6995781: Native Memory Tracking (Phase 1) 7151532: DCmd for hotspot native memory tracking Summary: Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd Reviewed-by: acorn, coleenp, fparain
author zgu
date Thu, 28 Jun 2012 17:03:16 -0400
parents f95d63e2154a
children da91efe96a93
comparison
equal deleted inserted replaced
5:99c1331d9659 6:c6500280dffc
42 // 42 //
43 // KlassInfoHisto is a growable array of pointers 43 // KlassInfoHisto is a growable array of pointers
44 // to KlassInfoEntry's and is used to sort 44 // to KlassInfoEntry's and is used to sort
45 // the entries. 45 // the entries.
46 46
47 class KlassInfoEntry: public CHeapObj { 47 class KlassInfoEntry: public CHeapObj<mtInternal> {
48 private: 48 private:
49 KlassInfoEntry* _next; 49 KlassInfoEntry* _next;
50 klassOop _klass; 50 klassOop _klass;
51 long _instance_count; 51 long _instance_count;
52 size_t _instance_words; 52 size_t _instance_words;
70 public: 70 public:
71 // Called for each KlassInfoEntry. 71 // Called for each KlassInfoEntry.
72 virtual void do_cinfo(KlassInfoEntry* cie) = 0; 72 virtual void do_cinfo(KlassInfoEntry* cie) = 0;
73 }; 73 };
74 74
75 class KlassInfoBucket: public CHeapObj { 75 class KlassInfoBucket: public CHeapObj<mtInternal> {
76 private: 76 private:
77 KlassInfoEntry* _list; 77 KlassInfoEntry* _list;
78 KlassInfoEntry* list() { return _list; } 78 KlassInfoEntry* list() { return _list; }
79 void set_list(KlassInfoEntry* l) { _list = l; } 79 void set_list(KlassInfoEntry* l) { _list = l; }
80 public: 80 public: