Integrated: 8376969: Shenandoah: GC state getters should be inlineable
Aleksey Shipilev
shade at openjdk.org
Tue Feb 3 08:47:12 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`
This pull request has now been integrated.
Changeset: 692444f0
Author: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/692444f071cab930d1b92bbfac79f87d0d801aab
Stats: 25 lines in 3 files changed: 11 ins; 12 del; 2 mod
8376969: Shenandoah: GC state getters should be inlineable
Reviewed-by: wkemper, xpeng, kdnilsen
-------------
PR: https://git.openjdk.org/jdk/pull/29526
More information about the shenandoah-dev
mailing list