RFR: 8290899: java/lang/String/StringRepeat.java test requests too much heap on windows x86

Sergey Bylokhov serb at openjdk.org
Tue Dec 13 05:33:56 UTC 2022


On Tue, 13 Dec 2022 04:54:44 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Hello Sergey, the linked JBS issues note that this test takes at most 1400M. Should there be some investigation into why it's failing even with 2GB allowance?

On windows x86 java fails even before the start of the test, it is just impossible to allocate 2g of memory.

jdk/bin/java -mx2g --version
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

The maximum it can allocate is around `-mx1650m`, but using that caused the test to fail from time to time.

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

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


More information about the core-libs-dev mailing list