mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8260193: Remove JVM_GetInterfaceVersion() and JVM_DTraceXXX
Reviewed-by: alanb, lfoltan, gziemski, ihse
This commit is contained in:
parent
98a76921ec
commit
b9d4211bc1
4 changed files with 2 additions and 112 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -30,16 +30,5 @@
|
|||
JNIEXPORT jint JNICALL
|
||||
DEF_JNI_OnLoad(JavaVM *vm, void *reserved)
|
||||
{
|
||||
jint vm_version = JVM_GetInterfaceVersion();
|
||||
if (vm_version != JVM_INTERFACE_VERSION) {
|
||||
JNIEnv *env;
|
||||
char buf[128];
|
||||
sprintf(buf, "JVM interface version mismatch: expecting %d, got %d.",
|
||||
JVM_INTERFACE_VERSION, (int)vm_version);
|
||||
(*vm)->GetEnv(vm, (void **)&env, JNI_VERSION_1_2);
|
||||
if (env) {
|
||||
(*env)->FatalError(env, buf);
|
||||
}
|
||||
}
|
||||
return JNI_VERSION_1_2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue