8299388: java/util/regex/NegativeArraySize.java fails on Alpine and sometimes Windows

Reviewed-by: mdoerr, alanb
This commit is contained in:
Matthias Baesken 2022-12-30 07:43:32 +00:00
parent 684e50690c
commit c2e3d72848

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -25,7 +25,7 @@
* @test
* @bug 8223174
* @summary Pattern.compile() can throw confusing NegativeArraySizeException
* @requires os.maxMemory >= 5g & vm.bits == 64
* @requires os.maxMemory >= 6g & vm.bits == 64 & !vm.musl
* @run testng/othervm -Xms5G -Xmx5G NegativeArraySize
*/