< prev index next > src/hotspot/share/nmt/virtualMemoryTracker.cpp
Print this page
reserved_rgn->mem_tag_name(), p2i(reserved_rgn->base()), reserved_rgn->size());
assert(reserved_rgn->contain_region(base_addr, size), "Reserved heap region should contain this mapping region");
return true;
}
+ if (reserved_rgn->mem_tag() == mtCode) {
+ assert(reserved_rgn->contain_region(base_addr, size), "Reserved code region should contain this mapping region");
+ return true;
+ }
+
// Print some more details. Don't use UL here to avoid circularities.
tty->print_cr("Error: existing region: [" INTPTR_FORMAT "-" INTPTR_FORMAT "), memory tag %u.\n"
" new region: [" INTPTR_FORMAT "-" INTPTR_FORMAT "), memory tag %u.",
p2i(reserved_rgn->base()), p2i(reserved_rgn->end()), (unsigned)reserved_rgn->mem_tag(),
p2i(base_addr), p2i(base_addr + size), (unsigned)mem_tag);
< prev index next >