RFR: 8298736: Revisit usages of log10 in compiler code
Damon Fenacci
duke at openjdk.org
Fri Dec 16 09:38:10 UTC 2022
The use of the Math library `log10` function causes an overloading ambiguity error on SPARC when using it with integer typed parameters.
* adding a `static_cast<double>` to the parameter
* using the lib `log10` function (with `static_cast`s) instead of a custom one in `src/hotspot/share/opto/node.cpp`
-------------
Commit messages:
- JDK-8298736: Revisit usages of log10 in compiler code
Changes: https://git.openjdk.org/jdk/pull/11686/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11686&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8298736
Stats: 14 lines in 2 files changed: 0 ins; 11 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/11686.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11686/head:pull/11686
PR: https://git.openjdk.org/jdk/pull/11686
More information about the hotspot-compiler-dev
mailing list