RFR: 8329597: C2: Intrinsify Reference.clear
Aleksey Shipilev
shade at openjdk.org
Fri Jul 12 10:24:57 UTC 2024
On Fri, 12 Jul 2024 10:16:13 GMT, Erik Österlund <eosterlund at 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
More information about the core-libs-dev
mailing list