mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-13 12:38:07 +00:00
8254674: G1: Improve root location reference to dead obj verification message
Reviewed-by: sjohanss, lkorinth
This commit is contained in:
parent
abe5137737
commit
3c2f5e08f7
@ -68,7 +68,8 @@ public:
|
||||
oop obj = CompressedOops::decode_not_null(heap_oop);
|
||||
if (_g1h->is_obj_dead_cond(obj, _vo)) {
|
||||
Log(gc, verify) log;
|
||||
log.error("Root location " PTR_FORMAT " points to dead obj " PTR_FORMAT, p2i(p), p2i(obj));
|
||||
log.error("Root location " PTR_FORMAT " points to dead obj " PTR_FORMAT " in region " HR_FORMAT,
|
||||
p2i(p), p2i(obj), HR_FORMAT_PARAMS(_g1h->heap_region_containing(obj)));
|
||||
ResourceMark rm;
|
||||
LogStream ls(log.error());
|
||||
obj->print_on(&ls);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user