On Wed, 6 May 2026 07:45:41 GMT, Thomas Schatzl <[email protected]> wrote:

> Hi all,
> 
>   please review this change that allows building of the JDK without Serial GC 
> enabled after [JDK-8384145](https://bugs.openjdk.org/browse/JDK-8384145).
> 
> One of the gtests is serial gc specific and needs to be moved. Noticed during 
> tests with JEP 523: Make G1 the Default Garbage Collector in All Environments.
> 
> Tested manually with and without `--with-jvm-features=-serialgc`, both image 
> building and running the test works in both cases (being skipped/not found if 
> serial gc has not been enabled).
> 
> Other testing: gha
> 
> Thanks,
>   Thomas
> 
> 
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: 54029b0a
Author:    Thomas Schatzl <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/54029b0a3c49b4b5bdb01467a6d8db6a4e84992c
Stats:     0 lines in 1 file changed: 0 ins; 0 del; 0 mod

8334617: Build always compiles gtest depending on Serial GC, failing build if 
disabled

Reviewed-by: shade, aboldtch

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

PR: https://git.openjdk.org/jdk/pull/31049

Reply via email to