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

Crash in src/hotspot/share/compiler/compileBroker.cpp:1615

XMLWordPrintable

      compiler/classUnloading/methodUnloading/TestOverloadCompileQueues.java run with AOT cache with AOT class linking enabled crashes with

      # Internal Error (/home/katya/work/JavaSE/Hotspot/ws/git/layden.premain/open/src/hotspot/share/compiler/compileBroker.cpp:1615), pid=21717, tid=21737
      # assert(!method->method_holder()->is_not_initialized() || compile_reason == CompileTask::Reason_Preload || compile_reason == CompileTask::Reason_Precompile || compile_reason == CompileTask::Reason_PrecompileForPreload) failed: method holder must be initialized


      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xa6fea4] CompileBroker::compile_method(methodHandle const&, int, int, methodHandle const&, int, bool, CompileTask::CompileReason, DirectiveSet*
      , JavaThread*)+0x224 (compileBroker.cpp:1615)
      V [libjvm.so+0xa707f6] CompileBroker::compile_method(methodHandle const&, int, int, methodHandle const&, int, bool, CompileTask::CompileReason, JavaThread*)+0xc6 (compileBroker.cpp:1598)
      V [libjvm.so+0xa379ad] CompilationPolicy::compile(methodHandle const&, int, CompLevel, JavaThread*)+0x11d (compilationPolicy.cpp:1107)
      V [libjvm.so+0xa39498] CompilationPolicy::event(methodHandle const&, methodHandle const&, int, int, CompLevel, nmethod*, JavaThread*)+0x378 (compilationPolicy.cpp:1642)
      V [libjvm.so+0xeee9a4] InterpreterRuntime::frequency_counter_overflow_inner(JavaThread*, unsigned char*)+0x234 (interpreterRuntime.cpp:1245)
      V [libjvm.so+0xeeeb2a] InterpreterRuntime::frequency_counter_overflow(JavaThread*, unsigned char*)+0x1a (interpreterRuntime.cpp:1194)
      j java.lang.invoke.LambdaMetafactory.metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;+0 java.base@24-internal
      j java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+20 java.base@24-internal
      j java.lang.invoke.Invokers$Holder.invokeExact_MT(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+28 java.base@24-internal
      j java.lang.invoke.BootstrapMethodInvoker.invoke(Ljava/lang/Class;Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;+319 java.base@24-internal
      j java.lang.invoke.CallSite.makeSite(Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/invoke/CallSite;+8 java.base@24-internal
      j java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(Ljava/lang/Class;Ljava/lang/invoke/MethodHandle;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;+6 java.base@24-internal
      j java.lang.invoke.MethodHandleNatives.linkCallSite(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;+45 java.base@24-internal
      v ~StubRoutines::call_stub 0x00007f5723d67d01
      V [libjvm.so+0xf12f3c] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x48c (javaCalls.cpp:421)
      V [libjvm.so+0xf14746] JavaCalls::call_static(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x136 (javaCalls.cpp:329)
      V [libjvm.so+0x185c594] SystemDictionary::invoke_bootstrap_method(BootstrapInfo&, JavaThread*)+0x324 (systemDictionary.cpp:2437)
      V [libjvm.so+0x1300d15] LinkResolver::resolve_dynamic_call(CallInfo&, BootstrapInfo&, JavaThread*)+0x25 (linkResolver.cpp:1898)
      V [libjvm.so+0x13092a3] LinkResolver::resolve_invokedynamic(CallInfo&, constantPoolHandle const&, int, JavaThread*)+0x2a3 (linkResolver.cpp:1870)
      V [libjvm.so+0x1309878] LinkResolver::resolve_invoke(CallInfo&, Handle, constantPoolHandle const&, int, Bytecodes::Code, JavaThread*)+0x98 (linkResolver.cpp:1714)
      V [libjvm.so+0xeee4f4] InterpreterRuntime::resolve_invokedynamic(JavaThread*)+0x184 (interpreterRuntime.cpp:1143)
      V [libjvm.so+0xef8d30] InterpreterRuntime::resolve_from_cache(JavaThread*, Bytecodes::Code)+0x210 (interpreterRuntime.cpp:1176)
      j java.security.Security.<clinit>()V+9 java.base@24-internal
      ...

      Steps to reproduce
      > TESTED_JAVA/bin/java -XX:AOTMode=create -XX:AOTConfiguration=TESTED_JAVA/lib/classlist -XX:+AOTClassLinking -XX:AOTCache=app.aot

      > bash jib.sh make -- run-test TEST=open/test/hotspot/jtreg/compiler/classUnloading/methodUnloading/TestOverloadCompileQueues.java TEST_VM_OPTS="-XX:AOTCache=app.aot"

            Unassigned Unassigned
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: