allocate 268435472 bytes for Chunk::new
Current thread (0x00007fb7b9477000): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=19186, stack(0x00007fb76627c000,0x00007fb76637d000)]
Stack: [0x00007fb76627c000,0x00007fb76637d000], sp=0x00007fb766377a70, free space=1006k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xace425] VMError::report_and_die()+0x2c5
V [libjvm.so+0x4deb77] report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*)+0x67
V [libjvm.so+0x2c662f] Arena::grow(unsigned long, AllocFailStrategy::AllocFailEnum)+0x13f
V [libjvm.so+0x2c685e] Arena::Arealloc(void*, unsigned long, unsigned long, AllocFailStrategy::AllocFailEnum)+0x12e
V [libjvm.so+0x95fe60] PhaseIterGVN::register_new_node_with_optimizer(Node*, Node*)+0x120
V [libjvm.so+0x805af6] PhaseIdealLoop::clone_loop(IdealLoopTree*, Node_List&, int, Node*)+0x2036
V [libjvm.so+0x7f0234] PhaseIdealLoop::create_slow_version_of_loop(IdealLoopTree*, Node_List&)+0x654
V [libjvm.so+0x7f09e2] PhaseIdealLoop::do_unswitching(IdealLoopTree*, Node_List&)+0x52
V [libjvm.so+0x7edc1f] IdealLoopTree::iteration_split(PhaseIdealLoop*, Node_List&)+0x15f
V [libjvm.so+0x7fca49] PhaseIdealLoop::build_and_optimize(bool, bool)+0xa69
V [libjvm.so+0x47dc8b] Compile::Optimize()+0x72b
V [libjvm.so+0x47f73a] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool)+0xcda
V [libjvm.so+0x3c461a] C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0xaa
V [libjvm.so+0x48ad7c] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x73c
V [libjvm.so+0x48c998] CompileBroker::compiler_thread_loop()+0x6d8
V [libjvm.so+0xa76f9b] JavaThread::thread_main_inner()+0xdb
V [libjvm.so+0xa7722f] JavaThread::run()+0x25f
V [libjvm.so+0x909c92] java_start(Thread*)+0x102
C [libpthread.so.0+0x7dc5] start_thread+0xc5
А вопрос в чём?
Не знаток Hotspot, но почему бы не погадать по stacktrace: может C2 разделяет Arena c кем-то ещё и JVM просто решила отъесть ещё кусочек памяти на свои нужды?
@shipilev
Обсуждают сегодня