8199220: Zero build broken after 8195103, 8191102 and 8189871
authorenevill
Tue, 13 Mar 2018 18:22:53 +0000
changeset 49390 95f0b54a3024
parent 49387 98e7a2c315a9
child 49391 02076019c25d
8199220: Zero build broken after 8195103, 8191102 and 8189871 Reviewed-by: dholmes, stuefe, eosterlund, glaubitz, coleenp
src/hotspot/cpu/zero/cppInterpreter_zero.cpp
src/hotspot/cpu/zero/globalDefinitions_zero.hpp
src/hotspot/cpu/zero/methodHandles_zero.cpp
src/hotspot/share/gc/shared/cardTableModRefBS.cpp
src/hotspot/share/interpreter/bytecodeInterpreter.cpp
--- a/src/hotspot/cpu/zero/cppInterpreter_zero.cpp	Tue Mar 13 15:29:55 2018 -0700
+++ b/src/hotspot/cpu/zero/cppInterpreter_zero.cpp	Tue Mar 13 18:22:53 2018 +0000
@@ -31,6 +31,7 @@
 #include "interpreter/interpreter.hpp"
 #include "interpreter/interpreterRuntime.hpp"
 #include "oops/arrayOop.hpp"
+#include "oops/cpCache.inline.hpp"
 #include "oops/methodData.hpp"
 #include "oops/method.hpp"
 #include "oops/oop.inline.hpp"
--- a/src/hotspot/cpu/zero/globalDefinitions_zero.hpp	Tue Mar 13 15:29:55 2018 -0700
+++ b/src/hotspot/cpu/zero/globalDefinitions_zero.hpp	Tue Mar 13 18:22:53 2018 +0000
@@ -26,6 +26,10 @@
 #ifndef CPU_ZERO_VM_GLOBALDEFINITIONS_ZERO_HPP
 #define CPU_ZERO_VM_GLOBALDEFINITIONS_ZERO_HPP
 
+#ifdef _LP64
+#define SUPPORTS_NATIVE_CX8
+#endif
+
 #include <ffi.h>
 
 // Indicates whether the C calling conventions require that
--- a/src/hotspot/cpu/zero/methodHandles_zero.cpp	Tue Mar 13 15:29:55 2018 -0700
+++ b/src/hotspot/cpu/zero/methodHandles_zero.cpp	Tue Mar 13 18:22:53 2018 +0000
@@ -28,6 +28,7 @@
 #include "interpreter/interpreter.hpp"
 #include "memory/allocation.inline.hpp"
 #include "memory/resourceArea.hpp"
+#include "oops/method.inline.hpp"
 #include "oops/oop.inline.hpp"
 #include "prims/methodHandles.hpp"
 
--- a/src/hotspot/share/gc/shared/cardTableModRefBS.cpp	Tue Mar 13 15:29:55 2018 -0700
+++ b/src/hotspot/share/gc/shared/cardTableModRefBS.cpp	Tue Mar 13 18:22:53 2018 +0000
@@ -116,6 +116,7 @@
 // that specific collector in mind, and the documentation above suitably
 // extended and updated.
 void CardTableModRefBS::on_slowpath_allocation_exit(JavaThread* thread, oop new_obj) {
+#if defined(COMPILER2) || INCLUDE_JVMCI
   if (!ReduceInitialCardMarks) {
     return;
   }
@@ -137,6 +138,7 @@
       invalidate(mr);
     }
   }
+#endif // COMPILER2 || JVMCI
 }
 
 void CardTableModRefBS::initialize_deferred_card_mark_barriers() {
--- a/src/hotspot/share/interpreter/bytecodeInterpreter.cpp	Tue Mar 13 15:29:55 2018 -0700
+++ b/src/hotspot/share/interpreter/bytecodeInterpreter.cpp	Tue Mar 13 18:22:53 2018 +0000
@@ -33,11 +33,14 @@
 #include "interpreter/interpreterRuntime.hpp"
 #include "logging/log.hpp"
 #include "memory/resourceArea.hpp"
+#include "oops/constantPool.inline.hpp"
+#include "oops/cpCache.inline.hpp"
 #include "oops/method.inline.hpp"
 #include "oops/methodCounters.hpp"
 #include "oops/objArrayKlass.hpp"
 #include "oops/objArrayOop.inline.hpp"
 #include "oops/oop.inline.hpp"
+#include "oops/typeArrayOop.inline.hpp"
 #include "prims/jvmtiExport.hpp"
 #include "prims/jvmtiThreadState.hpp"
 #include "runtime/atomic.hpp"
@@ -2824,7 +2827,7 @@
     HandleMark __hm(THREAD);
 
     THREAD->clear_pending_exception();
-    assert(except_oop(), "No exception to process");
+    assert(except_oop() != NULL, "No exception to process");
     intptr_t continuation_bci;
     // expression stack is emptied
     topOfStack = istate->stack_base() - Interpreter::stackElementWords;