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

JVMCI tests fail with UnsatisfiedLinkError as jdk.vm.ci not defined by boot loader

XMLWordPrintable

    • b112

      Like this:

      java.lang.AssertionError: NO_SEC_MAN: Got unexpected exception UnsatisfiedLinkError
      at compiler.jvmci.SecurityRestrictionsTest$TestCase.lambda$run$0(SecurityRestrictionsTest.java:163)
      at jdk.test.lib.Utils.runAndCheckException(Utils.java:574)
      at compiler.jvmci.SecurityRestrictionsTest$TestCase.run(SecurityRestrictionsTest.java:177)
      at compiler.jvmci.SecurityRestrictionsTest.main(SecurityRestrictionsTest.java:79)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(java.base@9-internal/Thread.java:804)
      Caused by: java.lang.UnsatisfiedLinkError: jdk.vm.ci.hotspot.CompilerToVM.registerNatives()V
      at jdk.vm.ci.hotspot.CompilerToVM.registerNatives(jdk.vm.ci@9-internal/Native Method)
      at jdk.vm.ci.hotspot.CompilerToVM.initialize(jdk.vm.ci@9-internal/CompilerToVM.java:62)
      at jdk.vm.ci.hotspot.CompilerToVM.<clinit>(jdk.vm.ci@9-internal/CompilerToVM.java:56)
      at jdk.vm.ci.hotspot.CompilerToVMHelper.<clinit>(jdk.vm.ci@9-internal/CompilerToVMHelper.java:37)
      at java.lang.Class.forName0(java.base@9-internal/Native Method)
      at java.lang.Class.forName(java.base@9-internal/Class.java:294)
      at compiler.jvmci.SecurityRestrictionsTest$TestCase.lambda$run$1(SecurityRestrictionsTest.java:180)
      at jdk.test.lib.Utils.runAndCheckException(Utils.java:571)
      ... 8 more

      Clean jdk9-dev fails like that when running jtreg compiler/jvmci tests on a self-built jdk9/dev forest.

            mchung Mandy Chung (Inactive)
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: