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

Hamlin Li mli at openjdk.org
Wed May 7 08:36:15 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!

Thanks, I'll check it.

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

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


More information about the hotspot-dev mailing list