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:
Serguei Spitsyn 2019-05-14 02:07:13 -07:00
parent e6b1cd1d4b
commit 1c202572d5
8 changed files with 42 additions and 27 deletions

View file

@ -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) {