提交 cae8bcea 编写于 作者: A aeriksso

8150002: Check for the validity of oop before printing it in verify_remembered_set

Summary: Adding missing check for valid oop.
Reviewed-by: dcubed
Contributed-by: NShafi Ahmad <shafi.s.ahmad@oracle.com>
上级 3d006345
......@@ -794,7 +794,9 @@ public:
"in region "HR_FORMAT,
(void*) obj,
HR_FORMAT_PARAMS(to));
obj->print_on(gclog_or_tty);
if (obj->is_oop()) {
obj->print_on(gclog_or_tty);
}
gclog_or_tty->print_cr("Obj head CTE = %d, field CTE = %d.",
cv_obj, cv_field);
gclog_or_tty->print_cr("----------");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册