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

@fork tests should use VM options passed from project.properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs
    • None

    Description

      I run tests with this command usually:

          ant -Drun.test.xmx=1g clean test

      I get the following error:

       [testng] Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
         [testng] at jdk.internal.org.objectweb.asm.ByteVector.enlarge(ByteVector.java:331)
         [testng] at jdk.internal.org.objectweb.asm.ByteVector.putUTF8(ByteVector.java:243)
         [testng] at jdk.internal.org.objectweb.asm.ClassWriter.newUTF8(ClassWriter.java:1089)
         [testng] at jdk.internal.org.objectweb.asm.ClassWriter.newNameTypeItem(ClassWriter.java:1559)
         [testng] at jdk.internal.org.objectweb.asm.ClassWriter.newNameType(ClassWriter.java:1542)
      [...]

      I think @fork tests should be passed with VM options specified in project.properties.

      Attachments

        Activity

          People

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: