hotspot/src/share/vm/runtime/jniHandles.cpp
changeset 35061 be6025ebffea
parent 33148 68fa8b6c4340
child 36398 5983833c444a
--- a/hotspot/src/share/vm/runtime/jniHandles.cpp	Thu Dec 10 23:02:31 2015 +0000
+++ b/hotspot/src/share/vm/runtime/jniHandles.cpp	Thu Dec 10 14:57:55 2015 +0100
@@ -24,6 +24,7 @@
 
 #include "precompiled.hpp"
 #include "classfile/systemDictionary.hpp"
+#include "logging/log.hpp"
 #include "oops/oop.inline.hpp"
 #include "prims/jvmtiExport.hpp"
 #include "runtime/jniHandles.hpp"
@@ -393,9 +394,7 @@
           f->do_oop(root);
         } else {
           // The weakly referenced object is not alive, clear the reference by storing NULL
-          if (TraceReferenceGC) {
-            tty->print_cr("Clearing JNI weak reference (" INTPTR_FORMAT ")", p2i(root));
-          }
+          log_develop_trace(gc, ref)("Clearing JNI weak reference (" INTPTR_FORMAT ")", p2i(root));
           *root = NULL;
         }
       }