[jdk21u-dev] RFR: 8330094: RISC-V: Save and restore FRM in the call stub

Gui Cao gcao at openjdk.org
Sat May 4 07:28:57 UTC 2024


On Wed, 1 May 2024 02:12:43 GMT, Fei Yang <fyang at openjdk.org> wrote:

>> Hi, The same issue also exists in JDK21u. So I would like to backport [JDK-8330094](https://bugs.openjdk.org/browse/JDK-8330094) to jdk21u-dev. With this change, we save and restore the default floating-point control state when we enter and leave Java code, ensuring that we are still Java compatible if we're called via the JNI invocation interface with a weird FP control state. RISC-V specific change, risk is low.
>> The backport is not clean because jdk21u-dev has no [JDK-8321021](https://bugs.openjdk.org/browse/JDK-8321021)
>> 
>> ### Testing
>> 
>> - [x]  Run tier1-3 tests on SOPHON SG2042 (release)
>
> LGTM.

@RealFYang @jerboaa : Thanks for the review.

-------------

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/545#issuecomment-2094062585


More information about the jdk-updates-dev mailing list