RFR: 8358556: Assert when running with -XX:-UseLibmIntrinsic

Mohamed Issa duke at openjdk.org
Mon Jun 9 06:48:49 UTC 2025


On Mon, 9 Jun 2025 05:13:12 GMT, David Holmes <dholmes at openjdk.org> wrote:

> > @dholmes-ora Does this fix the _-XX:-InlineIntrinsics_ assertion failures when running CubeRootTests.java and HyperbolicTests.java? I couldn't reproduce those, but I could reproduce the one with `java -XX:-UseLibmIntrinsic -version`.
> 
> Yes it does - thanks. Though I'm still unclear why only a couple of these math intrinsics are affected by `-XX:-InineIntrinsics` ??

The unaffected math intrinsics (_dsin_, _dcos_, _dexp_, ...) can fall back to alternate C++ implementations in the shared runtime when the stubs aren't generated by `-XX:-InlineIntrinsics` or `-XX:-UseLibmIntrinsic`. This isn't the case for the _dtanh_ and _dcbrt_ intrinsics.

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

PR Comment: https://git.openjdk.org/jdk/pull/25680#issuecomment-2954835770


More information about the hotspot-runtime-dev mailing list