RFR: JDK-7107013: sun.jvm.hotspot.runtime.Bytes.swapLong conversion to long mishandled
Sharath Ballal
sharath.ballal at oracle.com
Thu Nov 10 07:02:12 UTC 2016
Thanks Dmitry. I have made the changes in line 54.
http://cr.openjdk.java.net/~sballal/7107013/webrev.01/
I didn't change the recursive calls to swap functions because that looks more readable.
-Sharath Ballal
-----Original Message-----
From: Dmitry Samersoff
Sent: Thursday, November 10, 2016 12:46 AM
To: Sharath Ballal; serviceability-dev at openjdk.java.net
Subject: Re: RFR: JDK-7107013: sun.jvm.hotspot.runtime.Bytes.swapLong conversion to long mishandled
Sharath,
Please, add (int) to ll. 54 for better readability.
PS:
Despite the fact that C2 does a great job eliminating useless code (multiple calls to if (!swap) in this case) it would be nice to use simple, well known arithmetic directly instead of subsequent calls to other swap functions.
-Dmitry
On 2016-11-09 19:30, Sharath Ballal wrote:
> Hello,
>
> Pls review this small fix
>
>
>
> Issue: https://bugs.openjdk.java.net/browse/JDK-7107013
>
> Webrev: http://cr.openjdk.java.net/~sballal/7107013/webrev.00/
>
>
>
>
>
> -Sharath Ballal
>
>
>
>
>
--
Dmitry Samersoff
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
More information about the serviceability-dev
mailing list