8185624: G1HeapVerifier's VerifyRootsClosure prints important information on info log level

Fix logging of broken oop to error log level instead of info log level

Reviewed-by: mgerdin, tschatzl
This commit is contained in:
Muthusamy Chinnathambi 2017-08-29 05:33:15 -04:00 committed by David Buck
parent b885046273
commit 13be218cd2

View File

@ -62,7 +62,7 @@ public:
oop obj = oopDesc::decode_heap_oop_not_null(heap_oop);
if (_g1h->is_obj_dead_cond(obj, _vo)) {
Log(gc, verify) log;
log.info("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, p2i(p), p2i(obj));
if (_vo == VerifyOption_G1UseMarkWord) {
log.error(" Mark word: " PTR_FORMAT, p2i(obj->mark()));
}