On Fri, 12 Jul 2024 10:16:13 GMT, Erik Österlund <eosterl...@openjdk.org> wrote:
> The reason we did not do this before is that this is not a strong reference > store. Strong reference stores with a SATB collector will keep the referent > alive, which is typically the exact opposite of what a user wants when they > clear a Reference. You mean not doing this store just on the Java side? Yes, I agree, it would be awkward. In intrinsic, we are storing with the same decorators that `JVM_ReferenceClear` is using, which should be good with SATB collectors. Perhaps I am misunderstanding the comment. ------------- PR Comment: https://git.openjdk.org/jdk/pull/20139#issuecomment-2225277261