RFR: 8328611: Thread safety issue in com.sun.tools.jdi.ReferenceTypeImpl::classObject

Chris Plummer cjplummer at openjdk.org
Tue May 28 23:25:22 UTC 2024


Fixed "double-checked-locking" bug in `ReferenceImplType.classObject()`. Details in the first comment. Tested with the following:
- com/sun/jdi
- nsk/jdi
- nsk/jdwp
- nsk/jdb

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

Commit messages:
 - Update copyright
 - Unified 'worst case' comment.
 - Fix volatile issue with classObject() API.

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

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


More information about the serviceability-dev mailing list