RFR: 8374828: Save load_barrier_on_oop_field_preloaded in aot CodeCache

Erik Österlund eosterlund at openjdk.org
Mon Jan 12 22:50:33 UTC 2026


On Thu, 8 Jan 2026 23:18:19 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> Save this address so that the code that uses it in the valhalla repo will have it.  This doesn't fail in main jdk repository.
> See CR for more information.
> Tested with tier1-4.

I think AOT code caching will require assembly and prod run to not change GC. This does not concern me too much. It seems like a weird use case to train in a different way than you are running. Just don't do that. So the use case is not obvious in a Leyden context, and fixing this is fiddly although doable and we have tried some T-shirts. But that would likely be out of scope of the first version of the AOT compiled code caching.

What I care more about is the AOT cache shipped with the JDK, which does not embed any compiled code. It's important that these archives are offered for all GCs, despite not knowing which GC will be selected. Is that still the case?

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

PR Comment: https://git.openjdk.org/jdk/pull/29129#issuecomment-3740859802


More information about the hotspot-compiler-dev mailing list