8185624: G1HeapVerifier's VerifyRootsClosure prints important information on info log level
authordbuck
Tue, 29 Aug 2017 05:33:15 -0400
changeset 47088 03cfedd40b53
parent 47087 2279556f90ec
child 47090 dafcd9eed3e9
8185624: G1HeapVerifier's VerifyRootsClosure prints important information on info log level Summary: Fix logging of broken oop to error log level instead of info log level Reviewed-by: mgerdin, tschatzl Contributed-by: muthusamy.chinnathambi@oracle.com
hotspot/src/share/vm/gc/g1/g1HeapVerifier.cpp
--- a/hotspot/src/share/vm/gc/g1/g1HeapVerifier.cpp	Mon Aug 28 23:46:22 2017 +0000
+++ b/hotspot/src/share/vm/gc/g1/g1HeapVerifier.cpp	Tue Aug 29 05:33:15 2017 -0400
@@ -62,7 +62,7 @@
       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()));
         }