RFR: 8376969: Shenandoah: GC state getters should be inlineable

Aleksey Shipilev shade at openjdk.org
Tue Feb 3 08:43:52 UTC 2026


On Mon, 2 Feb 2026 17:29:49 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Noticed this when working on [JDK-8376749](https://bugs.openjdk.org/browse/JDK-8376749). Looks like some GC state checks we are using from the native barriers are not inlined into the fast-paths. This is very visible with smaller clones, for example. We should move GC state checks to appropriate .inline.hpp-s. Actually, I think these were inlineable before [JDK-8344055](https://bugs.openjdk.org/browse/JDK-8344055), so it is a minor regression in JDK 25.
> 
> This PR does a pretty simple move, so I expect no semantic change.
> 
> Additional testing:
>  - [x] Eye-balling barrier profiles on targeted microbenchmarks
>  - [x] Linux x86_64 server fastdebug, `hotspot_gc_shenandoah`

Thanks for reviews! I think all interested parties have replied, so I am integrating before 24 hours expire.

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

PR Comment: https://git.openjdk.org/jdk/pull/29526#issuecomment-3839906686


More information about the shenandoah-dev mailing list