Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8221400

java/lang/String/StringRepeat.java test requests too much heap

    Details

    • Subcomponent:
    • Resolved In Build:
      b14

      Backports

        Description

        Current jdk/java/lang/String/StringRepeat.java test requests -Xmx4G. This is excessive, as test needs only 700M on default x86_64, and 1400M with -XX:-CompactStrings and -XX:-UseCompressedOops.

        Requesting 4G makes test fail on x86_32, which is very unfortunate.

        Reducing -Xmx2g makes test pass on x86_32 without breaking x86_64:

        diff -r d25b24c70126 test/jdk/java/lang/String/StringRepeat.java
        --- a/test/jdk/java/lang/String/StringRepeat.java Mon Mar 25 00:57:03 2019 -0400
        +++ b/test/jdk/java/lang/String/StringRepeat.java Mon Mar 25 12:24:08 2019 +0100
        @@ -22,11 +22,11 @@
          */
         
         /*
          * @test
          * @summary This exercises String#repeat patterns and limits.
        - * @run main/othervm -Xmx4G StringRepeat
        + * @run main/othervm -Xmx2g StringRepeat
          */
         
         import java.nio.CharBuffer;
         
         public class StringRepeat {

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  shade Aleksey Shipilev
                  Reporter:
                  shade Aleksey Shipilev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: