This PR proposes to fix a race condition.

---------
- [X] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - Fix typo
 - Add check of value during race

Changes: https://git.openjdk.org/jdk/pull/31979/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31979&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8387722
  Stats: 6 lines in 1 file changed: 6 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/31979.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31979/head:pull/31979

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

Reply via email to