8249694: java/lang/StringBuffer/HugeCapacity.java and j/l/StringBuilder/HugeCapacity.java tests shouldn't be @ignore-d

Remove @ignore since @requires os.maxMemory is enough to ensure tests will not be executed if memory requirements are not satisfied

Reviewed-by: coffeys
This commit is contained in:
Fernando Guallini 2020-09-02 17:43:33 +01:00
parent e25f2a5715
commit 0dadf81e14
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020, 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
@ -26,9 +26,8 @@
* @bug 8218227
* @summary StringBuilder/StringBuffer constructor throws confusing
* NegativeArraySizeException
* @requires os.maxMemory >= 6G
* @requires (sun.arch.data.model == "64" & os.maxMemory >= 6G)
* @run main/othervm -Xms5G -Xmx5G HugeCapacity
* @ignore This test has huge memory requirements
*/
public class HugeCapacity {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2020, 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
@ -26,9 +26,8 @@
* @bug 8149330 8218227
* @summary Capacity should not get close to Integer.MAX_VALUE unless
* necessary
* @requires os.maxMemory >= 6G
* @requires (sun.arch.data.model == "64" & os.maxMemory >= 6G)
* @run main/othervm -Xms5G -Xmx5G HugeCapacity
* @ignore This test has huge memory requirements
*/
public class HugeCapacity {