RFR: 8355698: JDK not supporting sleef could cause exception at runtime after JDK-8353786

Hamlin Li mli at openjdk.org
Wed Apr 30 19:46:26 UTC 2025


Hi,
Can you help to review this patch?

Before [JDK-8353786](https://bugs.openjdk.org/browse/JDK-8353786), when a released jdk not supportting sleef (for any reason, e.g. low gcc version, intrinsic not supported, rvv not supported, and so on) runs on machine support vector operation (e.g. on riscv, it supports rvv), it can not call into sleef, but will not fail either, it falls back to java scalar version implementation.
But after [JDK-8353786](https://bugs.openjdk.org/browse/JDK-8353786), it will cause an exception thrown at runtime.

This change the behaviour of existing jdk, and it should not throw exception anyway.

@iwanowww @RealFYang 

Thanks!

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

Commit messages:
 - initial commit

Changes: https://git.openjdk.org/jdk/pull/24914/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24914&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8355698
  Stats: 4 lines in 1 file changed: 1 ins; 2 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/24914.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24914/head:pull/24914

PR: https://git.openjdk.org/jdk/pull/24914


More information about the hotspot-dev mailing list