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

Fei Yang fyang at openjdk.org
Wed May 1 02:13:00 UTC 2024


On Tue, 30 Apr 2024 13:25:35 GMT, Gui Cao <gcao at openjdk.org> wrote:

> Hi, The same issue also exists in jdk22u. So I would like to backport [JDK-8330094](https://bugs.openjdk.org/browse/JDK-8330094) to jdk22u. 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 jdk22u has no [JDK-8321021](https://bugs.openjdk.org/browse/JDK-8321021)
> 
> ### Testing
> 
> - [x]  Run tier1-3 tests on SOPHON SG2042 (release)

LGTM.

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

Marked as reviewed by fyang (Reviewer).

PR Review: https://git.openjdk.org/jdk22u/pull/174#pullrequestreview-2032920021


More information about the jdk-updates-dev mailing list