RFR: 8362657: Make tables used in AOT assembly phase GC-safe

Ioi Lam iklam at openjdk.org
Tue Sep 16 20:51:48 UTC 2025


Upstreaming from the Leyden prototype in anticipation of AOT code compilation ([JDK-8335368](https://bugs.openjdk.org/browse/JDK-8335368)).

We have a few tables that are currently consulted only inside the CDS safepoint. With AOT code compilation, these tables may be consulted after we leave the CDS safepoint. For GC safety, this PR uses `OopHandle` instead of `oop` in hashtables.

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

Commit messages:
 - 8362657: Make tables used in AOT assembly phase GC-safe

Changes: https://git.openjdk.org/jdk/pull/27323/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27323&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8362657
  Stats: 86 lines in 7 files changed: 62 ins; 0 del; 24 mod
  Patch: https://git.openjdk.org/jdk/pull/27323.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27323/head:pull/27323

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


More information about the hotspot-runtime-dev mailing list