RFR(T) 8248886 InstanceKlass::initialize_impl crashes with -XX:-UsePerfData after JDK-8246019
Ioi Lam
ioi.lam at oracle.com
Tue Jul 7 00:01:17 UTC 2020
Hi, here's a quick fix for a crash that happens with "java
-XX:-UsePerfData -version"
$ hg diff
diff -r d90de88ba4d0 src/hotspot/share/oops/instanceKlass.cpp
--- a/src/hotspot/share/oops/instanceKlass.cpp Mon Jul 06 15:14:44
2020 -0700
+++ b/src/hotspot/share/oops/instanceKlass.cpp Mon Jul 06 17:00:52
2020 -0700
@@ -1169,7 +1169,9 @@
call_class_initializer(THREAD);
} else {
// The elapsed time is so small it's not worth counting.
- ClassLoader::perf_classes_inited()->inc();
+ if (UsePerfData) {
+ ClassLoader::perf_classes_inited()->inc();
+ }
call_class_initializer(THREAD);
}
}
Thanks
- Ioi
More information about the hotspot-runtime-dev
mailing list