< prev index next >

src/hotspot/cpu/arm/sharedRuntime_arm.cpp

Print this page
rev 54072 : 8213845: ARM32: Interpreter doesn't call result handler after native calls
Summary: Fix mapping of native jboolean result to 0..1 on ARM32
Reviewed-by: aph, phh
Contributed-by: christoph.goettschkes@microdoc.com

*** 1655,1664 **** --- 1655,1669 ---- // Set FPSCR/FPCR to a known state if (AlwaysRestoreFPU) { __ restore_default_fp_mode(); } + // Ensure a Boolean result is mapped to 0..1 + if (ret_type == T_BOOLEAN) { + __ c2bool(R0); + } + // Do a safepoint check while thread is in transition state InlinedAddress safepoint_state(SafepointSynchronize::address_of_state()); Label call_safepoint_runtime, return_to_java; __ mov(Rtemp, _thread_in_native_trans); __ ldr_literal(R2, safepoint_state);
< prev index next >