src/share/vm/services/virtualMemoryTracker.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/services/virtualMemoryTracker.cpp Mon Aug 18 14:09:39 2014
--- new/src/share/vm/services/virtualMemoryTracker.cpp Mon Aug 18 14:09:38 2014
*** 335,350 ****
--- 335,358 ----
// Add new region
VirtualMemorySummary::record_reserved_memory(rgn.size(), flag);
*reserved_rgn = rgn;
return true;
} else {
+ }
+
+ // CDS mapping region.
+ // CDS reserves the whole region for mapping CDS archive, then maps each section into the region.
+ // NMT reports CDS as a whole.
+ if (reserved_rgn->flag() == mtClassShared) {
+ assert(reserved_rgn->contain_region(base_addr, size), "Reserved CDS region should contain this mapping region");
+ return true;
+ }
+
ShouldNotReachHere();
return false;
}
}
}
}
void VirtualMemoryTracker::set_reserved_region_type(address addr, MEMFLAGS flag) {
assert(addr != NULL, "Invalid address");
assert(_reserved_regions != NULL, "Sanity check");
src/share/vm/services/virtualMemoryTracker.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File