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

TestCodeEntryAlignment fails with "Alignment must be <= CodeEntryAlignment"

XMLWordPrintable

      Running test/hotspot/jtreg/compiler/arguments/TestCodeEntryAlignment.java with "sde64 -future --" fails:

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/workspace/open/src/hotspot/cpu/x86/macroAssembler_x86.cpp:768), pid=2339512, tid=2339538
      # assert(modulus <= (uintx)CodeEntryAlignment) failed: Alignment must be <= CodeEntryAlignment
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+22) (fastdebug build 25-ea+22-LTS-2601)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+22-LTS-2601, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x1537928] MacroAssembler::align(unsigned int) [clone .part.0]+0x28

      Stack: [0x000073df94500000,0x000073df94600000], sp=0x000073df945fcb30, free space=1010k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1537928] MacroAssembler::align(unsigned int) [clone .part.0]+0x28 (macroAssembler_x86.cpp:768)
      V [libjvm.so+0x153c4a7] MacroAssembler::align(unsigned int)+0x37
      V [libjvm.so+0x15908e3] MacroAssembler::sha512_update_ni_x1(Register, Register, Register, Register, bool)+0x333
      V [libjvm.so+0x197dd96] StubGenerator::generate_sha512_implCompress(StubGenStubId)+0xb6
      V [libjvm.so+0x19887f0] StubGenerator::generate_compiler_stubs()+0xa40
      V [libjvm.so+0x1989b78] StubGenerator_generate(CodeBuffer*, StubGenBlobId)+0x118
      V [libjvm.so+0x19f7129] initialize_stubs(StubGenBlobId, int, int, char const*, char const*, char const*) [clone .constprop.0]+0x239
      V [libjvm.so+0x19f7dfc] compiler_stubs_init(bool)+0x9c
      V [libjvm.so+0x94e3ee] C2Compiler::init_c2_runtime()+0xce
      V [libjvm.so+0x94e605] C2Compiler::initialize()+0x35
      V [libjvm.so+0xb24d55] CompileBroker::init_compiler_runtime()+0x155
      V [libjvm.so+0xb2c9b7] CompileBroker::compiler_thread_loop()+0x167
      V [libjvm.so+0x107b9fb] JavaThread::thread_main_inner()+0x13b
      V [libjvm.so+0x1aac636] Thread::call_run()+0xb6
      V [libjvm.so+0x173a5d8] thread_native_entry(Thread*)+0x128

      Easily reproduces even without the test:

      sde64 -future -- java -XX:+UnlockExperimentalVMOptions -XX:CodeEntryAlignment=16 -version

      SDE can be found here:
      https://www.intel.com/content/www/us/en/developer/articles/tool/software-development-emulator.html

            mchevalier Marc Chevalier
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: