When running with ubsan enabled binaries (linuxx86_64 opt), the test
compiler/intrinsics/VectorizedMismatchTest.java
shows this issue :
src/hotspot/cpu/x86/x86.ad:9384:89: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
#0 0x7f6420227564 in vmask_gen_immNode::emit(C2_MacroAssembler*, PhaseRegAlloc*) const src/hotspot/cpu/x86/x86.ad:9384
#1 0x7f6422e2b02d in PhaseOutput::scratch_emit_size(Node const*) src/hotspot/share/opto/output.cpp:3391
#2 0x7f6422e143c4 in PhaseOutput::shorten_branches(unsigned int*) src/hotspot/share/opto/output.cpp:545
#3 0x7f6422e425bc in PhaseOutput::Output() src/hotspot/share/opto/output.cpp:345
#4 0x7f6421431c70 in Compile::Code_Gen() src/hotspot/share/opto/compile.cpp:3014
#5 0x7f642143e243 in Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*) src/hotspot/share/opto/compile.cpp:885
#6 0x7f64210771b8 in C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) src/hotspot/share/opto/c2compiler.cpp:142
#7 0x7f6421454384 in CompileBroker::invoke_compiler_on_method(CompileTask*) src/hotspot/share/compiler/compileBroker.cpp:2303
#8 0x7f6421456a16 in CompileBroker::compiler_thread_loop() src/hotspot/share/compiler/compileBroker.cpp:1961
#9 0x7f6421f0cdca in JavaThread::thread_main_inner() src/hotspot/share/runtime/javaThread.cpp:758
#10 0x7f6423771c9a in Thread::call_run() src/hotspot/share/runtime/thread.cpp:225
#11 0x7f6422de6cd1 in thread_native_entry src/hotspot/os/linux/os_linux.cpp:858
#12 0x7f64281c66e9 in start_thread (/lib64/libpthread.so.0+0xa6e9) (BuildId: 052f7e2a0045f08cb7e7a291f8066a4b7be2521d)
#13 0x7f642771558e in clone (/lib64/libc.so.6+0x11858e) (BuildId: cfb059a57e69ac95d5dadab831626b3bd48a4309)
compiler/intrinsics/VectorizedMismatchTest.java
shows this issue :
src/hotspot/cpu/x86/x86.ad:9384:89: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
#0 0x7f6420227564 in vmask_gen_immNode::emit(C2_MacroAssembler*, PhaseRegAlloc*) const src/hotspot/cpu/x86/x86.ad:9384
#1 0x7f6422e2b02d in PhaseOutput::scratch_emit_size(Node const*) src/hotspot/share/opto/output.cpp:3391
#2 0x7f6422e143c4 in PhaseOutput::shorten_branches(unsigned int*) src/hotspot/share/opto/output.cpp:545
#3 0x7f6422e425bc in PhaseOutput::Output() src/hotspot/share/opto/output.cpp:345
#4 0x7f6421431c70 in Compile::Code_Gen() src/hotspot/share/opto/compile.cpp:3014
#5 0x7f642143e243 in Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*) src/hotspot/share/opto/compile.cpp:885
#6 0x7f64210771b8 in C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*) src/hotspot/share/opto/c2compiler.cpp:142
#7 0x7f6421454384 in CompileBroker::invoke_compiler_on_method(CompileTask*) src/hotspot/share/compiler/compileBroker.cpp:2303
#8 0x7f6421456a16 in CompileBroker::compiler_thread_loop() src/hotspot/share/compiler/compileBroker.cpp:1961
#9 0x7f6421f0cdca in JavaThread::thread_main_inner() src/hotspot/share/runtime/javaThread.cpp:758
#10 0x7f6423771c9a in Thread::call_run() src/hotspot/share/runtime/thread.cpp:225
#11 0x7f6422de6cd1 in thread_native_entry src/hotspot/os/linux/os_linux.cpp:858
#12 0x7f64281c66e9 in start_thread (/lib64/libpthread.so.0+0xa6e9) (BuildId: 052f7e2a0045f08cb7e7a291f8066a4b7be2521d)
#13 0x7f642771558e in clone (/lib64/libc.so.6+0x11858e) (BuildId: cfb059a57e69ac95d5dadab831626b3bd48a4309)
- relates to
-
JDK-8252848 Optimize small primitive arrayCopy operations through partial inlining using AVX-512 masked instructions
-
- Resolved
-
-
JDK-8338197 ubsan: ad_x86.hpp:6417:11: runtime error: shift exponent 100 is too large for 32-bit type 'unsigned int'
-
- Open
-