8231567: minimal build failed after JDK-8226690
authorjiefu
Fri, 27 Sep 2019 20:06:02 +0800
changeset 58376 d10b732966ba
parent 58375 a1eba2e37671
child 58377 975f2d30f6b3
8231567: minimal build failed after JDK-8226690 Reviewed-by: shade, coleenp
src/hotspot/share/prims/jvmtiExport.hpp
--- a/src/hotspot/share/prims/jvmtiExport.hpp	Fri Sep 27 07:56:02 2019 -0400
+++ b/src/hotspot/share/prims/jvmtiExport.hpp	Fri Sep 27 20:06:02 2019 +0800
@@ -193,7 +193,10 @@
   }
 
   // Only set in safepoint, so no memory ordering needed.
-  inline static uint64_t redefinition_count() { return _redefinition_count; }
+  inline static uint64_t redefinition_count() {
+    JVMTI_ONLY(return _redefinition_count);
+    NOT_JVMTI(return 0);
+  }
 
   inline static bool all_dependencies_are_recorded() {
     return _all_dependencies_are_recorded;