RFR: 8257180: Prevent resurrection of final/phantom refs through JNI weak refs

Roman Kennke rkennke at openjdk.java.net
Thu Nov 26 20:04:55 UTC 2020


On Thu, 26 Nov 2020 19:19:59 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> Can you explain why? I believe I have pointed out the relevant sections in the specification, their changes, and also in the previous implementation. The current behavious is not only unintuitive, it also may lead to unintentional resurrection of finalized final or phantom references.
>
> I'm working on a longer reply.  I wanted to get a stake in the ground to block this change while I work on that.  It *is* a holiday here in the US.

Sure, I am not in a rush. I guess I'm posting that mostly so that I can learn why we are in the situation that we're in, and see if it can be improved. Enjoy your thanksgiving!

-------------

PR: https://git.openjdk.java.net/jdk/pull/1464


More information about the hotspot-runtime-dev mailing list