Skip to content

Commit

Permalink
Making jnienv global helps x86 init
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed May 10, 2020
1 parent 93a2139 commit 078278e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JNI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ struct JavaVMInitArgs
end

function load_jni(penv::Ptr{JNIEnv})
jnienv = unsafe_load(penv)
global jnienv = unsafe_load(penv)
jniref[] = unsafe_load(jnienv.JNINativeInterface_) #The JNI Function table
global jnifunc = jniref[]
end
Expand Down

0 comments on commit 078278e

Please sign in to comment.