--- 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;