benanders / rjni

Run Java code from Rust!
MIT License
73 stars 4 forks source link

JNI reference handling #2

Open DemiMarie opened 7 years ago

DemiMarie commented 7 years ago

All references produced implicitly by the JVM are local refs. They need to be managed with PushLocalFrame and PopLocalFrame. Furthermore, any reference that is meant to be shared cross-thread must be a global ref or weak global ref.