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

tools/javac/importscope/T8193717.java ran out of java heap

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 11
    • Fix Version/s: tbd_major
    • Component/s: tools
    • Labels:

      Description

      Test: tools/javac/importscope/T8193717.java

      Failed on four different hosts, on three different platforms.

      compiler message file broken: key=compiler.misc.msg.bug arguments=11-internal, {1}, {2}, {3}, {4}, {5}, {6}, {7}
      java.lang.OutOfMemoryError: Java heap space
      at jdk.compiler/com.sun.tools.javac.code.Scope$ScopeImpl.<init>(Scope.java:332)
      at jdk.compiler/com.sun.tools.javac.code.Scope$ErrorScope.<init>(Scope.java:1114)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:288)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder$$Lambda$67/0x00000007c0105040.complete(Unknown Source)
      at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:642)
      at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1326)
      at jdk.compiler/com.sun.tools.javac.code.ClassFinder.loadClass(ClassFinder.java:433)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:1978)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.findIdentInPackageInternal(Resolve.java:2376)
      at jdk.compiler/com.sun.tools.javac.comp.Resolve.findIdentInPackage(Resolve.java:2364)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.selectSym(Attr.java:3714)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:3599)
      at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:2110)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:655)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribType(Attr.java:715)
      at jdk.compiler/com.sun.tools.javac.comp.Attr.attribType(Attr.java:708)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.attribImportType(TypeEnter.java:439)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.doImport(TypeEnter.java:422)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.resolveImports(TypeEnter.java:362)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.runPhase(TypeEnter.java:319)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.doCompleteEnvs(TypeEnter.java:280)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:249)
      at jdk.compiler/com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:198)
      at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:642)
      at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1326)
      at jdk.compiler/com.sun.tools.javac.comp.Enter.complete(Enter.java:583)
      at jdk.compiler/com.sun.tools.javac.comp.Enter.main(Enter.java:560)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1066)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:937)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.lambda$doCall$0(JavacTaskImpl.java:104)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl$$Lambda$1741/0x00000007c042bc40.call(Unknown Source)
      at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:147)
      toolbox.Task$TaskError: Task javac failed: rc=4
      at toolbox.AbstractTask.checkExit(AbstractTask.java:112)
      at toolbox.JavacTask.run(JavacTask.java:331)
      at T8193717.run(T8193717.java:99)
      at T8193717.main(T8193717.java:75)
      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.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
      at java.base/java.lang.Thread.run(Thread.java:832)

      JavaTest Message: Test threw exception: toolbox.Task$TaskError
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: toolbox.Task$TaskError: Task javac failed: rc=4

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlahoda Jan Lahoda
                Reporter:
                jwilhelm Jesper Wilhelmsson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: