RFR(S): 8063086: Math.pow yields different results upon repeated calls
Roland Westrelin
roland.westrelin at oracle.com
Wed Jan 7 13:20:36 UTC 2015
> Looks good. Make sure to run new test with -Xcomp and -XX:-TieredCompilation and Client VM.
Thanks for the review. I checked the test runs fine in these cases.
Roland.
>
> Thanks,
> Vladimir
>
> On 1/5/15 8:38 AM, Roland Westrelin wrote:
>> http://cr.openjdk.java.net/~roland/8063086/webrev.00/
>>
>> With 8029302, C2 computes x^2 as x*x. The interpreter and C1 code don’t have the special case code and as a result an application can see different result for the same computation whether it’s executed by the interpreter/c1 or c2. Fixed by adding the special case to the interpreter and C1.
>>
>> Roland.
>>
More information about the hotspot-compiler-dev
mailing list