[jdk17u-dev] Integrated: 8330094: RISC-V: Save and restore FRM in the call stub
Gui Cao
gcao at openjdk.org
Sun May 5 04:32:01 UTC 2024
On Tue, 30 Apr 2024 13:10:18 GMT, Gui Cao <gcao at openjdk.org> wrote:
> Hi, The same issue also exists in JDK17u. So I would like to backport [JDK-8330094](https://bugs.openjdk.org/browse/JDK-8330094) to jdk17u-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 jdk17u-dev only has partial vector api instruct, this backport-related instruct does not exist in jdk17u-dev.
>
> ### Testing
>
> - [x] Run tier1-3 tests on SOPHON SG2042 (release)
This pull request has now been integrated.
Changeset: 68a2d935
Author: Gui Cao <gcao at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL: https://git.openjdk.org/jdk17u-dev/commit/68a2d93588b1b3cdf1a8c8eb135581ede97c8ac3
Stats: 25 lines in 2 files changed: 21 ins; 0 del; 4 mod
8330094: RISC-V: Save and restore FRM in the call stub
Reviewed-by: fyang
Backport-of: b0496096dc8d7dc7acf28aa006141a3ecea446de
-------------
PR: https://git.openjdk.org/jdk17u-dev/pull/2442
More information about the jdk-updates-dev
mailing list