There are two tests trying to verify that large pages are used correctly for the heap and the G1 internal data structures. These tests are done in a separate process that is run with specific arguments to know the expected outcome and those test-process don't take in any outside parameters. This is good, but if the parameter LargePageSizeInBytes is passed to the test, the driver process will run with this flag and picking up the set page size as the expected one. The simple fix is to simply not run this test with this flag. For the test to work with this flag, more work has to be done to analyze how different page sizes will affect the test.
The affected test:
gc/g1/TestLargePageUseForHeap.java
gc/g1/TestLargePageUseForAuxMemory.java
The affected test:
gc/g1/TestLargePageUseForHeap.java
gc/g1/TestLargePageUseForAuxMemory.java