RFR: 8178500: Replace usages of round_to and round_down with align_up and align_down

Robbin Ehn robbin.ehn at oracle.com
Tue Jul 4 08:40:59 UTC 2017

Hi Stefan,

Looks ok, thanks for fixing.


On 06/30/2017 06:12 PM, Stefan Karlsson wrote:
> Hi all,
> Please review this patch to remove round_to and round_down and replace their usages with align_up and align_down.
> http://cr.openjdk.java.net/~stefank/8178500/webrev.00/
> https://bugs.openjdk.java.net/browse/JDK-8178500
> The round_to and round_down functions asserted that alignment was a power-of-2. I've added asserts to the corresponding align functions.
> This patch builds upon all the patches referred to in:
>   http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-June/027329.html
> Thanks,
> StefanK

More information about the hotspot-dev mailing list