...
- This keeps the number of JNI global refs HotSpot has to manage to a minimum
- Java objects are should not be pinned in the Java heap until some random native retain count lowers or the ObjC-GC runsdecides to kick in
- Java objects that own native objects have to concretely define the lifecycle of the native objects they hold
- The jlong type is used because it is big enough to hold both 32 and 64-bit sized pointers
- Use the jlong_to_ptr() and ptr_to_jlong() macros to correctly handle casting and avoid sign-extension problems
...
Overview
Content Tools
ThemeBuilder