8240846: Zero VM is broken after JDK-8238681: UseSSE not defined

Reviewed-by: shade, rehn, vlivanov
This commit is contained in:
Jie Fu 2020-03-13 17:01:16 +08:00
parent 38940d166a
commit a8b4801859

View File

@ -1328,7 +1328,7 @@ nmethod* CompileBroker::compile_method(const methodHandle& method, int osr_bci,
// do the compilation
if (method->is_native()) {
if (!PreferInterpreterNativeStubs || method->is_method_handle_intrinsic()) {
#ifdef X86
#if defined(X86) && !defined(ZERO)
// The following native methods:
//
// java.lang.Float.intBitsToFloat
@ -1350,7 +1350,7 @@ nmethod* CompileBroker::compile_method(const methodHandle& method, int osr_bci,
method->intrinsic_id() == vmIntrinsics::_doubleToRawLongBits))) {
return NULL;
}
#endif // X86
#endif // X86 && !ZERO
// To properly handle the appendix argument for out-of-line calls we are using a small trampoline that
// pops off the appendix argument and jumps to the target (see gen_special_dispatch in SharedRuntime).