8279954: java/lang/StringBuffer(StringBuilder)/HugeCapacity.java intermittently fails

Reviewed-by: shade, dholmes
This commit is contained in:
Jim Laskey 2022-02-01 18:45:31 +00:00
parent d1cc5fda8f
commit bde2b3783e
2 changed files with 5 additions and 5 deletions
test/jdk/java/lang
StringBuffer
StringBuilder

@ -26,8 +26,8 @@
* @bug 8218227
* @summary StringBuilder/StringBuffer constructor throws confusing
* NegativeArraySizeException
* @requires (sun.arch.data.model == "64" & os.maxMemory >= 6G)
* @run main/othervm -Xms5G -Xmx5G HugeCapacity
* @requires (sun.arch.data.model == "64" & os.maxMemory >= 8G)
* @run main/othervm -Xms6G -Xmx6G HugeCapacity
*/
public class HugeCapacity {

@ -26,9 +26,9 @@
* @bug 8149330 8218227
* @summary Capacity should not get close to Integer.MAX_VALUE unless
* necessary
* @requires (sun.arch.data.model == "64" & os.maxMemory >= 6G)
* @run main/othervm -Xms5G -Xmx5G -XX:+CompactStrings HugeCapacity true
* @run main/othervm -Xms5G -Xmx5G -XX:-CompactStrings HugeCapacity false
* @requires (sun.arch.data.model == "64" & os.maxMemory >= 8G)
* @run main/othervm -Xms6G -Xmx6G -XX:+CompactStrings HugeCapacity true
* @run main/othervm -Xms6G -Xmx6G -XX:-CompactStrings HugeCapacity false
*/
public class HugeCapacity {