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 abe43f3 commit 416d62cCopy full SHA for 416d62c
1 file changed
ddprof-lib/src/main/cpp/vmStructs.cpp
@@ -879,6 +879,12 @@ bool VMMethod::check_jmethodID(jmethodID id) {
879
}
880
881
bool VMMethod::check_jmethodID_hotspot(jmethodID id) {
882
+ if (VM::hotspot_version() > 25) {
883
+ // In https://bugs.openjdk.org/browse/JDK-8268406 the jmethodids are completely reworked
884
+ // The assumption that jmethodid can be resolved to Method* is false and we really can
885
+ // not do any extra checks here
886
+ return true;
887
+ }
888
const char *method_ptr = (const char *)SafeAccess::load((void **)id);
889
// check for NULL ptr and 'empty' ptr (JNIMethodBlock::_free_method)
890
if (method_ptr == NULL || (size_t)method_ptr == 55) {
0 commit comments