Mercurial > hg > truffle
comparison src/share/vm/services/memRecorder.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 | e5bf1c79ed5b |
children | ecd24264898b |
comparison
equal
deleted
inserted
replaced
6879:8ebcedb7604d | 6882:716c64bda5ba |
---|---|
186 MemPointer* next_record(); | 186 MemPointer* next_record(); |
187 | 187 |
188 // Test if the two records are the same kind: the same memory block and allocation | 188 // Test if the two records are the same kind: the same memory block and allocation |
189 // type. | 189 // type. |
190 inline bool same_kind(const MemPointerRecord* p1, const MemPointerRecord* p2) const { | 190 inline bool same_kind(const MemPointerRecord* p1, const MemPointerRecord* p2) const { |
191 assert(!p1->is_vm_pointer() && !p2->is_vm_pointer(), "malloc pointer only"); | |
191 return (p1->addr() == p2->addr() && | 192 return (p1->addr() == p2->addr() && |
192 (p1->flags() &MemPointerRecord::tag_masks) == | 193 (p1->flags() &MemPointerRecord::tag_masks) == |
193 (p2->flags() & MemPointerRecord::tag_masks)); | 194 (p2->flags() & MemPointerRecord::tag_masks)); |
194 } | 195 } |
195 }; | 196 }; |