Skip to content

Commit

Permalink
Merge pull request #590 from pshipton/huge
Browse files Browse the repository at this point in the history
OpenJDK test HugeCapacity needs to run with -XX:+CompactStrings
  • Loading branch information
keithc-ca authored Nov 3, 2022
2 parents ef434cb + 397e444 commit 260117a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/jdk/java/lang/StringBuilder/HugeCapacity.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,19 @@
* questions.
*/

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2022, 2022 All Rights Reserved
* ===========================================================================
*/

/**
* @test
* @bug 8149330
* @summary Capacity should not get close to Integer.MAX_VALUE unless
* necessary
* @requires (sun.arch.data.model == "64" & os.maxMemory >= 6G)
* @run main/othervm -Xmx5G HugeCapacity
* @run main/othervm -Xmx5G -XX:+CompactStrings HugeCapacity
*/

public class HugeCapacity {
Expand Down

0 comments on commit 260117a

Please sign in to comment.