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

Aleksey Shipilev shade at openjdk.org
Wed Sep 17 09:52:50 UTC 2025


On Tue, 16 Sep 2025 20:42:17 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> 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.

I remember reviewing this in Leyden/premain downstream. This looks good for mainline.

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

Marked as reviewed by shade (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27323#pullrequestreview-3233601632


More information about the hotspot-runtime-dev mailing list