RFR: 8374828: Save load_barrier_on_oop_field_preloaded in aot CodeCache
Stefan Karlsson
stefank at openjdk.org
Mon Jan 12 15:33:40 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.
And another ahh (See the `()` at the end of the line):
SET_ADDRESS(_extrs, ZBarrierSetRuntime::load_barrier_on_oop_field_preloaded_addr());
SET_ADDRESS(_extrs, ZBarrierSetRuntime::load_barrier_on_phantom_oop_field_preloaded_addr());
The `SET_ADDRESS` is done with the value returned from calling the above functions.
The Shenandoah barrier functions are referred to directly:
SET_ADDRESS(_extrs, ShenandoahRuntime::write_barrier_pre);
SET_ADDRESS(_extrs, ShenandoahRuntime::load_reference_barrier_phantom);
SET_ADDRESS(_extrs, ShenandoahRuntime::load_reference_barrier_phantom_narrow);
So, I think you need to make sure to look for reference to load_barrier_on_oop_field_preloaded and `load_barrier_on_phantom_oop_field_preloaded`.
I don't know if that helps or not.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29129#issuecomment-3739144000
More information about the hotspot-compiler-dev
mailing list