RFR: 4511638: Double.toString(double) sometimes produces incorrect results [v2]

Raffaello Giulietti github.com+70726043+rgiulietti at openjdk.java.net
Wed Oct 6 22:38:10 UTC 2021


On Fri, 16 Apr 2021 11:30:32 GMT, Raffaello Giulietti <github.com+70726043+rgiulietti at openjdk.org> wrote:

>> Hello,
>> 
>> here's a PR for a patch submitted on March 2020 [1](https://cr.openjdk.java.net/~bpb/4511638/webrev.04/) when Mercurial was a thing.
>> 
>> The patch has been edited to adhere to OpenJDK code conventions about multi-line (block) comments. Nothing in the code proper has changed, except for the addition of redundant but clarifying parentheses in some expressions.
>> 
>> 
>> Greetings
>> Raffaello
>
> Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision:
> 
>   4511638: Double.toString(double) sometimes produces incorrect results

The last time I ran JMH over the whole range of bitwise uniformly distributed random doubles, I measured a speedup of about 17.7x
https://mail.openjdk.java.net/pipermail/core-libs-dev/2020-April/065921.html

This is about 70 ns/conversion on a 2013 consumer-grade laptop.

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

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


More information about the core-libs-dev mailing list