-version asserts with "-XX:+UseAESCTRIntrinsics -XX:-UseAES" in generate_counterMode_AESCrypt_Parallel(). Run on a machine without avx512 support to use the code path that reveals the problem.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S34988/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f3243ba7-b34c-4eb2-9276-e1867faa18c0/runs/041c28e0-2159-4d53-90b3-ac7f539a1569/workspace/open/src/hotspot/cpu/x86/stubGenerator_x86_64_aes.cpp:498), pid=166756, tid=166776
# assert(UseAES) failed: need AES instructions and misaligned SSE support
#
# JRE version: Java(TM) SE Runtime Environment (27.0+4) (fastdebug build 27-ea+4-277)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-ea+4-277, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x1a71fcd] StubGenerator::generate_counterMode_AESCrypt_Parallel()+0x2b4d
.............
Command Line: -XX:+UseAESCTRIntrinsics -XX:-UseAES
.............
Stack: [0x00007fca2c990000,0x00007fca2ca90000], sp=0x00007fca2ca8a8e0, free space=1002k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x1a71fcd] StubGenerator::generate_counterMode_AESCrypt_Parallel()+0x2b4d (stubGenerator_x86_64_aes.cpp:498)
V [libjvm.so+0x1a89567] StubGenerator::generate_aes_stubs()+0xf7 (stubGenerator_x86_64_aes.cpp:231)
V [libjvm.so+0x1a68504] StubGenerator::generate_compiler_stubs()+0x304 (stubGenerator_x86_64.cpp:4187)
V [libjvm.so+0x1a69df8] StubGenerator_generate(CodeBuffer*, BlobId)+0x88 (stubGenerator_x86_64.cpp:4340)
V [libjvm.so+0x1af0612] initialize_stubs(BlobId, int, int, char const*, char const*, char const*) [clone .constprop.0]+0x242 (stubRoutines.cpp:190)
V [libjvm.so+0x1af11bc] compiler_stubs_init(bool)+0x9c (stubRoutines.cpp:233)
V [libjvm.so+0x9ce1ee] C2Compiler::init_c2_runtime()+0xbe (c2compiler.cpp:91)
V [libjvm.so+0x9ce415] C2Compiler::initialize()+0x35 (c2compiler.cpp:117)
V [libjvm.so+0xbbd49f] CompileBroker::init_compiler_runtime()+0x19f (compileBroker.cpp:1795)
V [libjvm.so+0xbc6cad] CompileBroker::compiler_thread_loop()+0x1dd (compileBroker.cpp:1941)
V [libjvm.so+0x112a41b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:776)
V [libjvm.so+0x1bb5d76] Thread::call_run()+0xb6 (thread.cpp:242)
V [libjvm.so+0x180ba18] thread_native_entry(Thread*)+0x118 (os_linux.cpp:860)
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S34988/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f3243ba7-b34c-4eb2-9276-e1867faa18c0/runs/041c28e0-2159-4d53-90b3-ac7f539a1569/workspace/open/src/hotspot/cpu/x86/stubGenerator_x86_64_aes.cpp:498), pid=166756, tid=166776
# assert(UseAES) failed: need AES instructions and misaligned SSE support
#
# JRE version: Java(TM) SE Runtime Environment (27.0+4) (fastdebug build 27-ea+4-277)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-ea+4-277, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x1a71fcd] StubGenerator::generate_counterMode_AESCrypt_Parallel()+0x2b4d
.............
Command Line: -XX:+UseAESCTRIntrinsics -XX:-UseAES
.............
Stack: [0x00007fca2c990000,0x00007fca2ca90000], sp=0x00007fca2ca8a8e0, free space=1002k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x1a71fcd] StubGenerator::generate_counterMode_AESCrypt_Parallel()+0x2b4d (stubGenerator_x86_64_aes.cpp:498)
V [libjvm.so+0x1a89567] StubGenerator::generate_aes_stubs()+0xf7 (stubGenerator_x86_64_aes.cpp:231)
V [libjvm.so+0x1a68504] StubGenerator::generate_compiler_stubs()+0x304 (stubGenerator_x86_64.cpp:4187)
V [libjvm.so+0x1a69df8] StubGenerator_generate(CodeBuffer*, BlobId)+0x88 (stubGenerator_x86_64.cpp:4340)
V [libjvm.so+0x1af0612] initialize_stubs(BlobId, int, int, char const*, char const*, char const*) [clone .constprop.0]+0x242 (stubRoutines.cpp:190)
V [libjvm.so+0x1af11bc] compiler_stubs_init(bool)+0x9c (stubRoutines.cpp:233)
V [libjvm.so+0x9ce1ee] C2Compiler::init_c2_runtime()+0xbe (c2compiler.cpp:91)
V [libjvm.so+0x9ce415] C2Compiler::initialize()+0x35 (c2compiler.cpp:117)
V [libjvm.so+0xbbd49f] CompileBroker::init_compiler_runtime()+0x19f (compileBroker.cpp:1795)
V [libjvm.so+0xbc6cad] CompileBroker::compiler_thread_loop()+0x1dd (compileBroker.cpp:1941)
V [libjvm.so+0x112a41b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:776)
V [libjvm.so+0x1bb5d76] Thread::call_run()+0xb6 (thread.cpp:242)
V [libjvm.so+0x180ba18] thread_native_entry(Thread*)+0x118 (os_linux.cpp:860)