[lworld] RFR: 8336671: [lworld] Test java/lang/ref/ReferenceEnqueuePending.java fails when run with migrated classes

Roger Riggs rriggs at openjdk.org
Thu Jul 18 21:35:26 UTC 2024


Integer is no longer a suitable Identity object, starting with --enable-preview in Valhalla.

Use a record instead of Integer to hold the number.
 Integer is not an identity class and can't be used with WeakReference.

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

Commit messages:
 - 8336671: [lworld] Test java/lang/ref/ReferenceEnqueuePending.java fails when run with migrated classes

Changes: https://git.openjdk.org/valhalla/pull/1171/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1171&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8336671
  Stats: 38 lines in 1 file changed: 4 ins; 17 del; 17 mod
  Patch: https://git.openjdk.org/valhalla/pull/1171.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1171/head:pull/1171

PR: https://git.openjdk.org/valhalla/pull/1171


More information about the valhalla-dev mailing list