Re: JNI WeakGlobalRefs

2021-07-22 Thread Brian Goetz
get runtime and GC folk) is the place to discuss JNI. Thanks, David I'm concerned that the current semantics of JNI WeakGlobalRefs are still dangerous in a very subtle way that is hidden in the spec. The current (14+) spec says: “Weak global references are related to Java phantom refer

JNI WeakGlobalRefs

2021-07-21 Thread Hans Boehm
Is this an appropriate list to discuss JNI? I'm concerned that the current semantics of JNI WeakGlobalRefs are still dangerous in a very subtle way that is hidden in the spec. The current (14+) spec says: “Weak global references are related to Java phantom refer

Re: JNI WeakGlobalRefs

2021-07-21 Thread David Holmes
Hi Hans, On 22/07/2021 7:54 am, Hans Boehm wrote: Is this an appropriate list to discuss JNI? No - hotspot-dev (to get runtime and GC folk) is the place to discuss JNI. Thanks, David I'm concerned that the current semantics of JNI WeakGlobalRefs are still dangerous in a very subtl