RFR: 8319540: GC: Make TestSelectDefaultGC use createTestJavaProcessBuilder

Ramkumar Sunderbabu rsunderbabu at openjdk.org
Wed Nov 26 16:06:17 UTC 2025


On Wed, 26 Nov 2025 15:58:32 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> We now how this:
> 
> ```
>         // Start VM without specifying GC
>         OutputAnalyzer output = GCArguments.executeTestJava(
> ```
> 
> It sounds to me that the comment say that we're running with out specifying a GC, but with this change we do. I think you need to update the comment or add appropriate requires line(s).

We still don't allow the GC flags. If the test was started with a GC flags, "@requires vm.gc.Serial & vm.gc.G1" will skip the test. Hence, the comment is still valid.

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

PR Comment: https://git.openjdk.org/jdk/pull/28422#issuecomment-3582044692


More information about the hotspot-gc-dev mailing list