RFR: 8280041: Retry loop issues in java.io.ClassCache

Aleksey Shipilev shade at openjdk.java.net
Fri Jan 14 22:29:52 UTC 2022


On Fri, 14 Jan 2022 20:50:24 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> One additional improvement would be to change r.get() == null to r.refersTo(null) to check for cleared reference, that avoids reviving the referent, e.g. in SATB GCs. I leave that up to you.

I think that does not work, because we want to strongly reference the `val` for eventual return.

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

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


More information about the core-libs-dev mailing list