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

GraalVM native-image fails after JDK-8238048 change

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b24

      Description

      The fix to https://bugs.openjdk.java.net/browse/JDK-8238048 introduced a regression which caused native-image to fail.


      [hello:6085] classlist: 4,531.56 ms, 0.96 GB
      [hello:6085] (cap): 4.22 ms, 0.96 GB
      [hello:6085] setup: 962.74 ms, 0.96 GB
      Fatal error:jdk.vm.ci.common.JVMCIError: Cannot call getSourceFileName() on an array klass type: HotSpotType<[B, resolved>
      at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotResolvedObjectTypeImpl.getSourceFileName(HotSpotResolvedObjectTypeImpl.java:821)
      at com.oracle.graal.pointsto.meta.AnalysisType.getSourceFileName(AnalysisType.java:930)
      at com.oracle.svm.hosted.SVMHost.createHub(SVMHost.java:297)
      at com.oracle.svm.hosted.SVMHost.registerType(SVMHost.java:225)
      at com.oracle.graal.pointsto.meta.AnalysisUniverse.createType(AnalysisUniverse.java:264)
      at com.oracle.graal.pointsto.meta.AnalysisUniverse.lookupAllowUnresolved(AnalysisUniverse.java:205)
      at com.oracle.graal.pointsto.meta.AnalysisUniverse.lookup(AnalysisUniverse.java:182)
      at com.oracle.graal.pointsto.meta.AnalysisUniverse.lookup(AnalysisUniverse.java:75)
      at com.oracle.graal.pointsto.infrastructure.UniverseMetaAccess$1.apply(UniverseMetaAccess.java:52)
      at com.oracle.graal.pointsto.infrastructure.UniverseMetaAccess$1.apply(UniverseMetaAccess.java:49)
      at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
      at com.oracle.graal.pointsto.infrastructure.UniverseMetaAccess.lookupJavaType(UniverseMetaAccess.java:84)
      at com.oracle.graal.pointsto.meta.AnalysisMetaAccess.lookupJavaType(AnalysisMetaAccess.java:47)
      at com.oracle.graal.pointsto.meta.AnalysisMetaAccess.lookupJavaType(AnalysisMetaAccess.java:39)
      at com.oracle.svm.hosted.c.NativeLibraries.<init>(NativeLibraries.java:239)
      at com.oracle.svm.hosted.NativeImageGenerator.setupNativeLibraries(NativeImageGenerator.java:1025)
      at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:856)
      at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:536)
      at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:451)
      at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1409)
      at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
      at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
      at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
      at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
      at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bobv Bob Vandette
                Reporter:
                bobv Bob Vandette
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: