RFR: 8188046: java.lang.Math.mutliplyHigh does not run in constant time

Brian Burkhalter bpb at openjdk.java.net
Thu Jul 1 23:55:10 UTC 2021


On Thu, 1 Jul 2021 23:46:00 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Please consider this proposal to remove the fast path in `java.lang.Math.multiplyHigh()` the small performance improvement of which is eclipsed by the branch penalty.

Please refer to the issue for a benchmark and sample output from it.

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

PR: https://git.openjdk.java.net/jdk/pull/4660


More information about the core-libs-dev mailing list