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

test/java/text/Bidi/Bug6665028.java can fail with OutOfMemoryError

XMLWordPrintable

    • b119
    • generic
    • generic

      test/java/text/Bidi/Bug6665028.java uses a maximum heap of 16MB which might be too small if there is some other Java code running in the VM like a JVMTI agent or Graal.

      Looking at the code of the test it seems it doesn't matter what size the Java heap has so I propose to remove the -Xmx flag from the run command:

      diff -r 4be14673b9bf test/java/text/Bidi/Bug6665028.java
      --- a/test/java/text/Bidi/Bug6665028.java Thu Nov 14 11:19:32 2013 +0100
      +++ b/test/java/text/Bidi/Bug6665028.java Fri Nov 22 17:28:23 2013 -0800
      @@ -28,7 +28,7 @@
        * that this test case fails without the fix in some different ways,
        * including timeout, due to the memory corruption.
        * @build Bug6665028
      - * @run main/othervm -Xmx16m Bug6665028 10
      + * @run main/othervm Bug6665028 10
        */
       
       import java.awt.font.TextAttribute;

            peytoia Yuka Kamiya (Inactive)
            twisti Christian Thalinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: