java.lang.NoSuchMethodError: jdk.vm.ci.hotspot.CompilerToVM.asResolvedJavaMethod(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl; at jdk.vm.ci.hotspot.CompilerToVMHelper.asResolvedJavaMethod(jdk.vm.ci@9-ea/CompilerToVMHelper.java:177)

JDK Bug System | Zoltan Majo | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    The test jvmci/compilerToVM/MaterializeVirtualObjectTest.java fails if run with -XX:-EliminateAllocations. I managed to reproduce the failure on linux-x64 with an early-access jdk9-b138 build. Here is the relevant output: java.lang.NoSuchMethodError: jdk.vm.ci.hotspot.CompilerToVM.asResolvedJavaMethod(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl; at jdk.vm.ci.hotspot.CompilerToVMHelper.asResolvedJavaMethod(jdk.vm.ci@9-ea/CompilerToVMHelper.java:177) at compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:60) at compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:65) at compiler.jvmci.compilerToVM.MaterializeVirtualObjectTest.<clinit>(MaterializeVirtualObjectTest.java:88) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:535) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.lang.Thread.run(java.base@9-ea/Thread.java:843) STATUS:Failed.`main' threw exception: java.lang.NoSuchMethodError: jdk.vm.ci.hotspot.CompilerToVM.asResolvedJavaMethod(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl;

    JDK Bug System | 6 months ago | Zoltan Majo
    java.lang.NoSuchMethodError: jdk.vm.ci.hotspot.CompilerToVM.asResolvedJavaMethod(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl; at jdk.vm.ci.hotspot.CompilerToVMHelper.asResolvedJavaMethod(jdk.vm.ci@9-ea/CompilerToVMHelper.java:177)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      jdk.vm.ci.hotspot.CompilerToVM.asResolvedJavaMethod(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl; at jdk.vm.ci.hotspot.CompilerToVMHelper.asResolvedJavaMethod(jdk.vm.ci@9-ea/CompilerToVMHelper.java:177)

      at compiler.jvmci.common.CTVMUtilities.getResolvedMethod()
    2. compiler.jvmci.common
      CTVMUtilities.getResolvedMethod
      1. compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:60)
      2. compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:65)
      2 frames
    3. compiler.jvmci.compilerToVM
      MaterializeVirtualObjectTest.<clinit>
      1. compiler.jvmci.compilerToVM.MaterializeVirtualObjectTest.<clinit>(MaterializeVirtualObjectTest.java:88)
      1 frame