RFR: 8333306: gc/arguments/TestParallelGCErgo.java fails when largepage are enabled

Leonid Mesnik lmesnik at openjdk.org
Mon Jul 1 19:15:21 UTC 2024


On Sat, 29 Jun 2024 18:22:18 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> Test gc/arguments/TestParallelGCErgo.java start new VM process with  specific heap setting and check GC ergonomics. The aligment might be different for large pages enabled. 
> So it makes sense to just disable the test if LargePages are enabled.

I implemented the changes similar to all other tests in this directory.
Using createLimitedTestJavaProcessBuilder seems reasonable but it means that we need to skip this tests for any other parameters except "-XX:+UseParallelGC". Usually we use  'vm.flagless' for such tests, however it means that we don't run it even with "-XX:+UseParallelGC". Unfortunately there is no easy way no run this test only if "-XX:+UseParallelGC" or no options are set. 
There is a bug that might improve options handling in such tests:
https://bugs.openjdk.org/browse/JDK-8315475

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

PR Comment: https://git.openjdk.org/jdk/pull/19957#issuecomment-2200846626


More information about the hotspot-gc-dev mailing list