mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7199092: NMT: NMT needs to deal overlapped virtual memory ranges
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
This commit is contained in:
parent
240b5c9329
commit
3e481cdd81
29 changed files with 800 additions and 364 deletions
|
@ -188,6 +188,7 @@ class SequencedRecordIterator : public MemPointerArrayIterator {
|
|||
// Test if the two records are the same kind: the same memory block and allocation
|
||||
// type.
|
||||
inline bool same_kind(const MemPointerRecord* p1, const MemPointerRecord* p2) const {
|
||||
assert(!p1->is_vm_pointer() && !p2->is_vm_pointer(), "malloc pointer only");
|
||||
return (p1->addr() == p2->addr() &&
|
||||
(p1->flags() &MemPointerRecord::tag_masks) ==
|
||||
(p2->flags() & MemPointerRecord::tag_masks));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue