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

Need to bailout cleanly if creation of stubs fails when codecache is out of space

XMLWordPrintable

    • b78

        CompiledStaticCall::emit_to_interp_stub calls start_a_stub(), which can cause codecache expansion. We bail out of emit_to_interp_stub, but the caller continues blindly on.

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/opt/jprt/T/P1/220303.vkozlov/s/hotspot/src/share/vm/opto/output.cpp:1510), pid=22959, tid=0x0000007f32f4d1f0
        # assert(false) failed: wrong size of mach node
        #
        # JRE version: Java(TM) SE Runtime Environment (9.0) (build 1.9.0-internal-fastdebug-20150706220303.vkozlov.8086069-b00)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-internal-fastdebug-20150706220303.vkozlov.8086069-b00 compiled mode linux-aarch64 compressed oops)
        # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /export/local/aurora/sandbox/results/workDir/compiler/profiling/spectrapredefineclass/Launcher/core.22959)
        #
        # If you would like to submit a bug report, please visit:
        # http://bugreport.java.com/bugreport/crash.jsp
        #

        --------------- T H R E A D ---------------

        Current thread (0x0000007f8c2eb800): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=22989, stack(0x0000007f32e4e000,0x0000007f32f4e000)]

        Stack: [0x0000007f32e4e000,0x0000007f32f4e000], sp=0x0000007f32f48880, free space=1002k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0xde36f0] VMError::report(outputStream*)+0x162c;; VMError::report(outputStream*)+0x162c
        V [libjvm.so+0xde39bc] VMError::report_and_die()+0x130;; VMError::report_and_die()+0x130
        V [libjvm.so+0x5df2c8] report_vm_error(char const*, int, char const*, char const*)+0x74;; report_vm_error(char const*, int, char const*, char const*)+0x74
        V [libjvm.so+0xba3f9c] Compile::fill_buffer(CodeBuffer*, unsigned int*)+0x109c;; Compile::fill_buffer(CodeBuffer*, unsigned int*)+0x109c
        V [libjvm.so+0xba505c] Compile::Output()+0x3f0;; Compile::Output()+0x3f0
        V [libjvm.so+0x565948] Compile::Code_Gen()+0x4e0;; Compile::Code_Gen()+0x4e0
        V [libjvm.so+0x5691b8] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool)+0x1094;; Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool)+0x1094
        V [libjvm.so+0x41e6d4] C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0x134;; C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0x134
        V [libjvm.so+0x572d24] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3c8;; CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3c8
        V [libjvm.so+0x5739e4] CompileBroker::compiler_thread_loop()+0x378;; CompileBroker::compiler_thread_loop()+0x378
        V [libjvm.so+0xd6f780] JavaThread::thread_main_inner()+0x1bc;; JavaThread::thread_main_inner()+0x1bc
        V [libjvm.so+0xd6f9d4] JavaThread::run()+0x1e0;; JavaThread::run()+0x1e0
        V [libjvm.so+0xb7f928] java_start(Thread*)+0xd8;; java_start(Thread*)+0xd8
        C [libpthread.so.0+0x7e2c] start_thread+0xb0


        Current CompileTask:
        C2: 29729 2353 !b java.lang.invoke.DirectMethodHandle::makePreparedFieldLambdaForm (1079 bytes)

              thartmann Tobias Hartmann
              dlong Dean Long
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: