RFR: 8341871: Disable G1 for unsupported platforms after JDK-8334060

Aleksey Shipilev shade at openjdk.org
Mon Oct 14 14:39:49 UTC 2024


On Mon, 14 Oct 2024 13:08:32 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> This implicitly fixes x86-32 builds that fail at runtime, because late barrier expansion is not implemented for them. I think about this check as something that we should have done as part of original JDK-8334060.
> 
> The first version was summarily disabling G1 on platforms not explicitly listed in arches. Unfortunately, that affects Zero, while the problem we are working out is G1+C2 support. The second revision of this PR checks for `compiler2` and x86-32 explicitly, and disables G1 only then.
> 
> Additional testing:
>  - [x] Linux x86_32 server fastdebug, `make bootcycle-images` now passes
>  - [x] A matrix of (server, zero) builds on different platforms

Thanks! I decided to avoid breaking Zero + G1, and just filter out G1+C2 configuration in favor of C2, see new commit.

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

PR Comment: https://git.openjdk.org/jdk/pull/21493#issuecomment-2411452352


More information about the build-dev mailing list