< prev index next >

src/share/vm/runtime/jniHandles.cpp

Print this page

        

*** 22,31 **** --- 22,32 ---- * */ #include "precompiled.hpp" #include "classfile/systemDictionary.hpp" + #include "logging/log.hpp" #include "oops/oop.inline.hpp" #include "prims/jvmtiExport.hpp" #include "runtime/jniHandles.hpp" #include "runtime/mutexLocker.hpp" #include "runtime/thread.inline.hpp"
*** 391,403 **** if (is_alive->do_object_b(value)) { // The weakly referenced object is alive, update pointer 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)); ! } *root = NULL; } } } // the next handle block is valid only if current block is full --- 392,402 ---- if (is_alive->do_object_b(value)) { // The weakly referenced object is alive, update pointer f->do_oop(root); } else { // The weakly referenced object is not alive, clear the reference by storing NULL ! log_develop_trace(gc, ref)("Clearing JNI weak reference (" INTPTR_FORMAT ")", p2i(root)); *root = NULL; } } } // the next handle block is valid only if current block is full
< prev index next >