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

Gui Cao gcao at openjdk.org
Wed May 1 03:09:27 UTC 2024


> 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)

Gui Cao has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge remote-tracking branch 'upstream/master' into backport-JDK-8330094
 - Backport 8330094: RISC-V: Save and restore FRM in the call stub

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

Changes:
  - all: https://git.openjdk.org/jdk22u/pull/174/files
  - new: https://git.openjdk.org/jdk22u/pull/174/files/5ee0a979..4be7be7e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk22u&pr=174&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk22u&pr=174&range=00-01

  Stats: 6 lines in 1 file changed: 0 ins; 0 del; 6 mod
  Patch: https://git.openjdk.org/jdk22u/pull/174.diff
  Fetch: git fetch https://git.openjdk.org/jdk22u.git pull/174/head:pull/174

PR: https://git.openjdk.org/jdk22u/pull/174


More information about the jdk-updates-dev mailing list