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

[TESTBUG] runtime/Metaspace/FragmentMetaspace.java fails: heap needs to be increased

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b10

      Backports

        Description

        The test is run with:

        command: main -Xmx300m FragmentMetaspace

        Perhaps we should increase the -Xmx value? See comments for details.

        and fails sometimes with:

        java.lang.OutOfMemoryError: Java heap space
        at jdk.compiler/com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:156)
        at jdk.compiler/com.sun.tools.javac.util.Position.makeLineMap(Position.java:80)
        at jdk.compiler/com.sun.tools.javac.parser.JavaTokenizer.getLineMap(JavaTokenizer.java:776)
        at jdk.compiler/com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:127)
        at jdk.compiler/com.sun.tools.javac.parser.JavacParser.parseCompilationUnit(JavacParser.java:3289)
        at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:639)
        at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:676)
        at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:1026)
        at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:939)
        at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:311)
        at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:170)
        at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:75)
        at jdk.compiler/com.sun.tools.javac.api.JavacTool.run(JavacTool.java:208)
        at GeneratedClassLoader.getGeneratedClass(GeneratedClassLoader.java:148)
        at GeneratedClassLoader.getGeneratedClasses(GeneratedClassLoader.java:195)
        at FragmentMetaspace.runGrowing(FragmentMetaspace.java:64)
        at FragmentMetaspace.main(FragmentMetaspace.java:45)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
        at java.base/java.lang.Thread.run(Thread.java:834)

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                coleenp Coleen Phillimore
                Reporter:
                twisti Christian Thalinger
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: