mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8150002: Check for the validity of oop before printing it in verify_remembered_set
Adding missing check for valid oop. Reviewed-by: dcubed
This commit is contained in:
parent
1f76cb2833
commit
a9a432a1a1
1 changed files with 3 additions and 1 deletions
|
@ -781,7 +781,9 @@ public:
|
||||||
ResourceMark rm;
|
ResourceMark rm;
|
||||||
_containing_obj->print_on(log.error_stream());
|
_containing_obj->print_on(log.error_stream());
|
||||||
log.error("points to obj " PTR_FORMAT " in region " HR_FORMAT, p2i(obj), HR_FORMAT_PARAMS(to));
|
log.error("points to obj " PTR_FORMAT " in region " HR_FORMAT, p2i(obj), HR_FORMAT_PARAMS(to));
|
||||||
obj->print_on(log.error_stream());
|
if (obj->is_oop()) {
|
||||||
|
obj->print_on(log.error_stream());
|
||||||
|
}
|
||||||
log.error("Obj head CTE = %d, field CTE = %d.", cv_obj, cv_field);
|
log.error("Obj head CTE = %d, field CTE = %d.", cv_obj, cv_field);
|
||||||
log.error("----------");
|
log.error("----------");
|
||||||
_failures = true;
|
_failures = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue