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

[lworld] C2 hits memory limit when compiling TestValueConstruction::run

XMLWordPrintable

      compiler/valhalla/inlinetypes/TestValueConstruction.java intermittently hits the 1g mem limit in various configurations.

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/workspace/open/src/hotspot/share/compiler/compilationMemoryStatistic.cpp:935), pid=1132752, tid=1132771
      # fatal error: c2 (480) compiler/valhalla/inlinetypes/TestValueConstruction::run((IZ)V): Hit MemLimit - limit: 1073741824 now: 1107088408

      Current CompileTask:
      C2:151484 480 b compiler.valhalla.inlinetypes.TestValueConstruction::run (1031 bytes)

      Stack: [0x00007ff3d5cfe000,0x00007ff3d5dfe000], sp=0x00007ff3d5df82f0, free space=1000k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1c7ed93] VMError::report(outputStream*, bool)+0x2f93 (compilationMemoryStatistic.cpp:935)
      V [libjvm.so+0x1c82803] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x5a3 (vmError.cpp:1846)
      V [libjvm.so+0xc42edb] report_fatal(VMErrorType, char const*, int, char const*, ...)+0x10b (debug.cpp:223)
      V [libjvm.so+0xb44c7f] CompilationMemoryStatistic::on_arena_chunk_allocation(unsigned long, int, unsigned long*)+0x6ef (compilationMemoryStatistic.cpp:935)
      V [libjvm.so+0x6d5cd6] ChunkPool::allocate_chunk(Arena*, unsigned long, AllocFailStrategy::AllocFailEnum)+0x166 (arena.cpp:196)
      V [libjvm.so+0x6d6b34] Arena::grow(unsigned long, AllocFailStrategy::AllocFailEnum)+0x74 (arena.cpp:330)
      V [libjvm.so+0xd464ea] PhaseIdealLoop::Dominators()+0xaa (domgraph.cpp:423)
      V [libjvm.so+0x15866e1] PhaseIdealLoop::build_and_optimize()+0x431 (loopnode.cpp:4701)
      V [libjvm.so+0xb7ae10] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x4c0 (loopnode.hpp:1170)
      V [libjvm.so+0xb744e6] Compile::Optimize()+0x6c6 (compile.cpp:2959)
      V [libjvm.so+0xb77d8f] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x201f (compile.cpp:882)
      V [libjvm.so+0x98b134] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x484 (c2compiler.cpp:143)
      V [libjvm.so+0xb85b68] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb58 (compileBroker.cpp:2298)
      V [libjvm.so+0xb86d28] CompileBroker::compiler_thread_loop()+0x568 (compileBroker.cpp:1942)
      V [libjvm.so+0x1100dcb] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:773)
      V [libjvm.so+0x1b8b626] Thread::call_run()+0xb6 (thread.cpp:243)
      V [libjvm.so+0x17eef58] thread_native_entry(Thread*)+0x128 (os_linux.cpp:869)

            Unassigned Unassigned
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: