--- old/src/share/vm/gc/parallel/psMarkSweep.cpp 2017-06-27 14:19:05.676534601 -0700 +++ new/src/share/vm/gc/parallel/psMarkSweep.cpp 2017-06-27 14:19:05.584534927 -0700 @@ -51,6 +51,7 @@ #include "oops/oop.inline.hpp" #include "runtime/biasedLocking.hpp" #include "runtime/fprofiler.hpp" +#include "runtime/heapMonitoring.hpp" #include "runtime/safepoint.hpp" #include "runtime/vmThread.hpp" #include "services/management.hpp" @@ -610,6 +611,7 @@ // have been cleared if they pointed to non-surviving objects.) // Global (weak) JNI handles JNIHandles::weak_oops_do(adjust_pointer_closure()); + HeapMonitoring::weak_oops_do(adjust_pointer_closure()); CodeBlobToOopClosure adjust_from_blobs(adjust_pointer_closure(), CodeBlobToOopClosure::FixRelocations); CodeCache::blobs_do(&adjust_from_blobs);