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

Alan Bateman alanb at openjdk.org
Tue Dec 13 08:01:02 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.

What you have looks okay if only Windows 32-bit is skipped but it might be simpler to just require sun.arch.data.model == "64" so that it only runs on 64-bit systems.

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

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


More information about the core-libs-dev mailing list