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

AArch64: compiler stub buffer size wrongly depends on ZGC

XMLWordPrintable

    • b23
    • x86_64
    • os_x

      jdk-25+20 fails to build on x64 Mac with a JVM crash

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (codeBuffer.cpp:1005), pid=65220, tid=29955
      # guarantee(sect->end() <= tend) failed: sanity
      #
      # JRE version: OpenJDK Runtime Environment Temurin-25+21-202505021356 (25.0+21) (build 25-beta+21-ea)
      # Java VM: OpenJDK 64-Bit Server VM Temurin-25+21-202505021356 (25-beta+21-ea, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # If you would like to submit a bug report, please visit:
      # https://github.com/adoptium/adoptium-support/issues
      #

      Current thread (0x0000000159876000): JavaThread "C2 CompilerThread0" daemon [_thread_in_vm, id=29955, stack(0x000000016d84c000,0x000000016da4f000) (2060K)]

      Stack: [0x000000016d84c000,0x000000016da4f000], sp=0x000000016da4e1e0, free space=2056k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x7fbc40] VMError::report(outputStream*, bool)+0x116c (codeBuffer.cpp:1005)
      V [libjvm.dylib+0x7fedb4] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x538
      V [libjvm.dylib+0x2d86dc] print_error_for_unit_test(char const*, char const*, char*)+0x0
      V [libjvm.dylib+0x272fd0] CodeBuffer::verify_section_allocation()+0x314
      V [libjvm.dylib+0x272be4] CodeBuffer::~CodeBuffer()+0x20
      V [libjvm.dylib+0x7312f4] initialize_stubs(StubGenBlobId, int, int, char const*, char const*, char const*)+0x15c
      V [libjvm.dylib+0x731668] compiler_stubs_init(bool)+0xa8
      V [libjvm.dylib+0x1e9ba4] C2Compiler::initialize()+0x7c
      V [libjvm.dylib+0x2a440c] CompileBroker::init_compiler_runtime()+0xd0
      V [libjvm.dylib+0x2a4c80] CompileBroker::compiler_thread_loop()+0x210
      V [libjvm.dylib+0x4856a0] JavaThread::thread_main_inner()+0xa8
      V [libjvm.dylib+0x78a878] Thread::call_run()+0xc0
      V [libjvm.dylib+0x63bcf4] thread_native_entry(Thread*)+0x118
      C [libsystem_pthread.dylib+0x7034] _pthread_start+0x88
      Lock stack of current Java thread (top to bottom):


      Note, we cross compile Mac x64 on aarch64 Mac.

      I have the complete hs err log if needed.

            adinn Andrew Dinn
            aleonard Andrew Leonard
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: