comparison src/share/vm/memory/allocation.hpp @ 6882:716c64bda5ba

7199092: NMT: NMT needs to deal overlapped virtual memory ranges Summary: Enhanced virtual memory tracking to track committed regions as well as reserved regions, so NMT now can generate virtual memory map. Reviewed-by: acorn, coleenp
author zgu
date Fri, 19 Oct 2012 21:40:07 -0400
parents 7b5885dadbdc
children 1baf7f1e3f23 59c790074993
comparison
equal deleted inserted replaced
6879:8ebcedb7604d 6882:716c64bda5ba
142 mtOther = 0x0800, // memory not used by VM 142 mtOther = 0x0800, // memory not used by VM
143 mtSymbol = 0x0900, // symbol 143 mtSymbol = 0x0900, // symbol
144 mtNMT = 0x0A00, // memory used by native memory tracking 144 mtNMT = 0x0A00, // memory used by native memory tracking
145 mtChunk = 0x0B00, // chunk that holds content of arenas 145 mtChunk = 0x0B00, // chunk that holds content of arenas
146 mtJavaHeap = 0x0C00, // Java heap 146 mtJavaHeap = 0x0C00, // Java heap
147 mtDontTrack = 0x0D00, // memory we donot or cannot track 147 mtClassShared = 0x0D00, // class data sharing
148 mt_number_of_types = 0x000C, // number of memory types 148 mt_number_of_types = 0x000D, // number of memory types (mtDontTrack
149 // is not included as validate type)
150 mtDontTrack = 0x0E00, // memory we do not or cannot track
149 mt_masks = 0x7F00, 151 mt_masks = 0x7F00,
150 152
151 // object type mask 153 // object type mask
152 otArena = 0x0010, // an arena object 154 otArena = 0x0010, // an arena object
153 otNMTRecorder = 0x0020, // memory recorder object 155 otNMTRecorder = 0x0020, // memory recorder object
340 } 342 }
341 343
342 public: 344 public:
343 Arena(); 345 Arena();
344 Arena(size_t init_size); 346 Arena(size_t init_size);
345 Arena(Arena *old);
346 ~Arena(); 347 ~Arena();
347 void destruct_contents(); 348 void destruct_contents();
348 char* hwm() const { return _hwm; } 349 char* hwm() const { return _hwm; }
349 350
350 // new operators 351 // new operators