mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8219023: Investigate syncing JVMTI spec version with JDK version
Auto sync versions with the jdk versions Reviewed-by: dholmes, jcbeyler, cjplummer
This commit is contained in:
parent
e6b1cd1d4b
commit
1c202572d5
8 changed files with 42 additions and 27 deletions
|
@ -383,7 +383,10 @@ JvmtiExport::get_jvmti_interface(JavaVM *jvm, void **penv, jint version) {
|
|||
}
|
||||
break;
|
||||
default:
|
||||
return JNI_EVERSION; // unsupported major version number
|
||||
// Starting from 13 we do not care about minor version anymore
|
||||
if (major < 13 || major > Abstract_VM_Version::vm_major_version()) {
|
||||
return JNI_EVERSION; // unsupported major version number
|
||||
}
|
||||
}
|
||||
|
||||
if (JvmtiEnv::get_phase() == JVMTI_PHASE_LIVE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue