RFR (S) 8252592: Non-PCH build is broken after JDK-8251560

Aleksey Shipilev shade at redhat.com
Mon Aug 31 16:50:06 UTC 2020


Bug:
   https://bugs.openjdk.java.net/browse/JDK-8252592

Fix is to add the appropriate #include where vm_exit_during_initialization is used.

diff -r e10f558e1df5 src/hotspot/share/gc/shenandoah/mode/shenandoahIUMode.cpp
--- a/src/hotspot/share/gc/shenandoah/mode/shenandoahIUMode.cpp Mon Aug 31 16:12:32 2020 +0100
+++ b/src/hotspot/share/gc/shenandoah/mode/shenandoahIUMode.cpp Mon Aug 31 18:47:57 2020 +0200
@@ -33,2 +33,3 @@
  #include "logging/logTag.hpp"
+#include "runtime/java.hpp"

diff -r e10f558e1df5 src/hotspot/share/gc/shenandoah/mode/shenandoahSATBMode.cpp
--- a/src/hotspot/share/gc/shenandoah/mode/shenandoahSATBMode.cpp       Mon Aug 31 16:12:32 2020 +0100
+++ b/src/hotspot/share/gc/shenandoah/mode/shenandoahSATBMode.cpp       Mon Aug 31 18:47:57 2020 +0200
@@ -33,2 +33,3 @@
  #include "logging/logTag.hpp"
+#include "runtime/java.hpp"

diff -r e10f558e1df5 src/hotspot/share/gc/shenandoah/shenandoahArguments.cpp
--- a/src/hotspot/share/gc/shenandoah/shenandoahArguments.cpp   Mon Aug 31 16:12:32 2020 +0100
+++ b/src/hotspot/share/gc/shenandoah/shenandoahArguments.cpp   Mon Aug 31 18:47:57 2020 +0200
@@ -31,2 +31,3 @@
  #include "gc/shenandoah/shenandoahHeapRegion.hpp"
+#include "runtime/java.hpp"
  #include "utilities/defaultStream.hpp"
diff -r e10f558e1df5 src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
--- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp        Mon Aug 31 16:12:32 2020 +0100
+++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp        Mon Aug 31 18:47:57 2020 +0200
@@ -78,2 +78,3 @@
  #include "runtime/interfaceSupport.inline.hpp"
+#include "runtime/java.hpp"
  #include "runtime/orderAccess.hpp"

Testing: local builds

-- 
Thanks,
-Aleksey



More information about the hotspot-runtime-dev mailing list