RFR: 8303213: Avoid AtomicReference in TextComponentPrintable [v2]
Andrey Turbanov
aturbanov at openjdk.org
Sun Feb 26 14:55:27 UTC 2023
> If CompareAndSwap is not used, then AtomicReference could be replaced with volatile. It simplified code a bit.
Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
8303213: Avoid AtomicReference in TextComponentPrintable
read volatile field only once
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/12018/files
- new: https://git.openjdk.org/jdk/pull/12018/files/b7224447..b9e7bd7a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=12018&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=12018&range=00-01
Stats: 8 lines in 1 file changed: 6 ins; 1 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/12018.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12018/head:pull/12018
PR: https://git.openjdk.org/jdk/pull/12018
More information about the client-libs-dev
mailing list