--- old/src/share/vm/gc_implementation/g1/g1MarkSweep.cpp 2019-02-15 19:02:26.383219509 +0300 +++ new/src/share/vm/gc_implementation/g1/g1MarkSweep.cpp 2019-02-15 19:02:26.291222726 +0300 @@ -52,6 +52,9 @@ #include "runtime/vmThread.hpp" #include "utilities/copy.hpp" #include "utilities/events.hpp" +#if INCLUDE_JFR +#include "jfr/jfr.hpp" +#endif // INCLUDE_JFR class HeapRegion; @@ -267,6 +270,7 @@ // Now adjust pointers in remaining weak roots. (All of which should // have been cleared if they pointed to non-surviving objects.) JNIHandles::weak_oops_do(&always_true, &GenMarkSweep::adjust_pointer_closure); + JFR_ONLY(Jfr::weak_oops_do(&always_true, &GenMarkSweep::adjust_pointer_closure)); if (G1StringDedup::is_enabled()) { G1StringDedup::oops_do(&GenMarkSweep::adjust_pointer_closure);