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

SendaoYan syan at openjdk.org
Wed Apr 30 19:46:26 UTC 2025


On Mon, 28 Apr 2025 10:34:49 GMT, Hamlin Li <mli at openjdk.org> wrote:

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

This PR can fix the failure of [JDK-8355656](https://bugs.openjdk.org/browse/JDK-8355656)

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

PR Comment: https://git.openjdk.org/jdk/pull/24914#issuecomment-2837289061


More information about the hotspot-dev mailing list