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

Paul Hohensee phh at openjdk.org
Thu Dec 15 14:39:07 UTC 2022


On Tue, 13 Dec 2022 00:06:00 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> The `java/lang/String/StringRepeat.java` test was updated twice after integration:
> 
> https://bugs.openjdk.org/browse/JDK-8221400 - the xmx4g was replaced by the xmx2g
> https://bugs.openjdk.org/browse/JDK-8265421 - the "os.maxMemory >= 2G" was added
> 
> Unfortunately, this test still may fail on Windows x86 due to: `Could not reserve enough space for xxx object heap.`
> 
> This is a request to exclude it on win x86 since that JDK cannot allocate 2g.

Lgtm.

This is a (very old) known problem with 32-bit Windows. Address space randomization (libraries allocated at widely dispersed locations within the 4g 32-bit virtual address space) means there's a limit to the size of contiguous virtual address space mappable to the Java heap.

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

Marked as reviewed by phh (Reviewer).

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


More information about the core-libs-dev mailing list