We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e00b1 commit ce324cbCopy full SHA for ce324cb
1 file changed
ddprof-lib/src/main/cpp/vmStructs.cpp
@@ -873,6 +873,12 @@ bool VMMethod::check_jmethodID(jmethodID id) {
873
}
874
875
bool VMMethod::check_jmethodID_hotspot(jmethodID id) {
876
+ if (VM::hotspot_version() > 25) {
877
+ // In https://bugs.openjdk.org/browse/JDK-8268406 the jmethodids are completely reworked
878
+ // The assumption that jmethodid can be resolved to Method* is false and we really can
879
+ // not do any extra checks here
880
+ return true;
881
+ }
882
const char *method_ptr = (const char *)SafeAccess::load((void **)id);
883
// check for NULL ptr and 'empty' ptr (JNIMethodBlock::_free_method)
884
if (method_ptr == NULL || (size_t)method_ptr == 55) {
0 commit comments