RFR: 8335217: Fix memory ordering in ClassLoaderData::ChunkedHandleList

Zhengyu Gu zgu at openjdk.org
Thu Jun 27 02:30:40 UTC 2024


ClassLoaderData::ChunkedHandleList's head is installed via Atomic::release_store(). Therefore, readers need Atomic::Atomic::load_acquire() barrier to access its members safely.

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

Commit messages:
 - 8335217: Fix memory ordering in ClassLoaderData::ChunkedHandleList

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

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


More information about the hotspot-runtime-dev mailing list