8279954: java/lang/StringBuffer(StringBuilder)/HugeCapacity.java intermittently fails
Reviewed-by: shade, dholmes
This commit is contained in:
parent
d1cc5fda8f
commit
bde2b3783e
test/jdk/java/lang
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user