Description
A CompilerToVM method can't be used in case -Djvmci.option.UseProfilingInformation=true is specified. An error output (i've replaced actual path with $JAVA_HOME )
Exception in thread "main" java.lang.InternalError: $JAVA_HOME/lib/jvmci does not exist
at jdk.internal.jvmci.options.JVMCIJarsOptionDescriptorsProvider.findJVMCIJars(JVMCIJarsOptionDescriptorsProvider.java:58)
at jdk.internal.jvmci.options.JVMCIJarsOptionDescriptorsProvider.<init>(JVMCIJarsOptionDescriptorsProvider.java:45)
at jdk.internal.jvmci.options.OptionsParser.parseOptionsFromVM(OptionsParser.java:70)
at jdk.internal.jvmci.runtime.JVMCI.initializeRuntime(Native Method)
at jdk.internal.jvmci.runtime.JVMCI.<clinit>(JVMCI.java:58)
at jdk.internal.jvmci.hotspot.HotSpotJVMCIRuntime.<clinit>(HotSpotJVMCIRuntime.java:51)
at jdk.internal.jvmci.hotspot.HotSpotResolvedJavaMethodImpl.getHolder(HotSpotResolvedJavaMethodImpl.java:69)
at jdk.internal.jvmci.hotspot.HotSpotResolvedJavaMethodImpl.fromMetaspace(HotSpotResolvedJavaMethodImpl.java:87)
at jdk.internal.jvmci.hotspot.CompilerToVM.getResolvedJavaMethodAtSlot(Native Method)
at jdk.internal.jvmci.hotspot.CompilerToVMHelper.getResolvedJavaMethodAtSlot(CompilerToVMHelper.java:180)
at compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:54)
at compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:59)
at test.test.main(test.java:12)
Exception in thread "main" java.lang.InternalError: $JAVA_HOME/lib/jvmci does not exist
at jdk.internal.jvmci.options.JVMCIJarsOptionDescriptorsProvider.findJVMCIJars(JVMCIJarsOptionDescriptorsProvider.java:58)
at jdk.internal.jvmci.options.JVMCIJarsOptionDescriptorsProvider.<init>(JVMCIJarsOptionDescriptorsProvider.java:45)
at jdk.internal.jvmci.options.OptionsParser.parseOptionsFromVM(OptionsParser.java:70)
at jdk.internal.jvmci.runtime.JVMCI.initializeRuntime(Native Method)
at jdk.internal.jvmci.runtime.JVMCI.<clinit>(JVMCI.java:58)
at jdk.internal.jvmci.hotspot.HotSpotJVMCIRuntime.<clinit>(HotSpotJVMCIRuntime.java:51)
at jdk.internal.jvmci.hotspot.HotSpotResolvedJavaMethodImpl.getHolder(HotSpotResolvedJavaMethodImpl.java:69)
at jdk.internal.jvmci.hotspot.HotSpotResolvedJavaMethodImpl.fromMetaspace(HotSpotResolvedJavaMethodImpl.java:87)
at jdk.internal.jvmci.hotspot.CompilerToVM.getResolvedJavaMethodAtSlot(Native Method)
at jdk.internal.jvmci.hotspot.CompilerToVMHelper.getResolvedJavaMethodAtSlot(CompilerToVMHelper.java:180)
at compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:54)
at compiler.jvmci.common.CTVMUtilities.getResolvedMethod(CTVMUtilities.java:59)
at test.test.main(test.java:12)