[11u] RFR (XS) 8265718: Build failure after JDK-8258414 11u backport

Aleksey Shipilev shade at redhat.com
Thu Apr 22 06:17:16 UTC 2021


Current jdk11u fastdebug build fails with:

/home/shade/trunks/jdk-updates-jdk11u-dev/src/hotspot/share/jfr/leakprofiler/checkpoint/objectSampleCheckpoint.cpp: 

In static member function 'static void ObjectSampleCheckpoint::on_rotation(const ObjectSampler*)':
/home/shade/trunks/jdk-updates-jdk11u-dev/src/hotspot/share/jfr/leakprofiler/checkpoint/objectSampleCheckpoint.cpp:298:14: 

error: 'JfrJavaSupport' has not been declared
    298 | DEBUG_ONLY(JfrJavaSupport::check_java_thread_in_native(thread);)
        | ^~~~~~~~~~~~~~
/home/shade/trunks/jdk-updates-jdk11u-dev/src/hotspot/share/utilities/macros.hpp:393:26: note: in
definition of macro 'DEBUG_ONLY'
    393 | #define DEBUG_ONLY(code) code
        | ^~~~

Fix:

diff -r 31224d74aa23 src/hotspot/share/jfr/leakprofiler/checkpoint/objectSampleCheckpoint.cpp
--- a/src/hotspot/share/jfr/leakprofiler/checkpoint/objectSampleCheckpoint.cpp  Thu Sep 05 12:39:48
2019 +0200
+++ b/src/hotspot/share/jfr/leakprofiler/checkpoint/objectSampleCheckpoint.cpp  Thu Apr 22 08:09:40
2021 +0200
@@ -22,10 +22,11 @@
    *
    */

   #include "precompiled.hpp"
   #include "jfr/jfrEvents.hpp"
+#include "jfr/jni/jfrJavaSupport.hpp"
   #include "jfr/leakprofiler/chains/edgeStore.hpp"
   #include "jfr/leakprofiler/chains/objectSampleMarker.hpp"

Testing: Linux x86_64 fastdebug build

-- 
Thanks,
-Aleksey



More information about the jdk-updates-dev mailing list