RFR: 8309688: Data race on java.io.ClassCache$CacheRef.strongReferent [v3]

Man Cao manc at openjdk.org
Tue Jun 13 20:42:49 UTC 2023


> Hi all,
> 
> Could anyone review this small fix for a data race in java.io.ClassCache$CacheRef? This fix makes the code safer by making the code data-race-free.

Man Cao has updated the pull request incrementally with one additional commit since the last revision:

  Switch to using volatile instead of AtomicReference

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/14386/files
  - new: https://git.openjdk.org/jdk/pull/14386/files/3b6d0baf..6270b98e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14386&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14386&range=01-02

  Stats: 11 lines in 1 file changed: 5 ins; 1 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/14386.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14386/head:pull/14386

PR: https://git.openjdk.org/jdk/pull/14386


More information about the core-libs-dev mailing list