Skip to content

Commit

Permalink
Merge pull request #17475 from pshipton/staticmethod
Browse files Browse the repository at this point in the history
Call static method VM.getVMArgs() from JNI as a static method
  • Loading branch information
keithc-ca committed May 31, 2023
2 parents f98cb31 + 01e8f4b commit b58a15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/j9vm/java11vmi.c
Expand Up @@ -1372,7 +1372,7 @@ JVM_GetVmArguments(JNIEnv *env)
/* exit vm before calling jni method */
internalFunctions->internalExitVMToJNI(currentThread);

result = (jobjectArray)((*env)->CallObjectMethod(env, vmJniClass, mid));
result = (jobjectArray)((*env)->CallStaticObjectMethod(env, vmJniClass, mid));

internalFunctions->internalEnterVMFromJNI(currentThread);
internalFunctions->j9jni_deleteLocalRef(env, (jobject)vmJniClass);
Expand Down

0 comments on commit b58a15e

Please sign in to comment.