[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-hotspot-runtime-dev
Subject:    Re: RFR(xs): 8241581: Add BitMap::count_one_bits variant for arbitrary lengths
From:       Thomas_Stüfe <thomas.stuefe () gmail ! com>
Date:       2020-03-26 20:19:05
Message-ID: CAA-vtUyY1qZ6UE+RcXeHHhpN00DUg-oFHX7gRbT3tgL6-O+U7w () mail ! gmail ! com
[Download RAW message or body]

Thanks Kim.

On Thu 26. Mar 2020 at 20:42, Kim Barrett <kim.barrett@oracle.com> wrote:

> > On Mar 25, 2020, at 8:35 AM, Thomas St=C3=BCfe <thomas.stuefe@gmail.com=
>
> wrote:
> >
> > Greetings,
> >
> > could I have reviews for this small enhancement please:
> >
> > JBS: https://bugs.openjdk.java.net/browse/JDK-8241581
> > Webrev:
> >
> http://cr.openjdk.java.net/~stuefe/webrevs/bitmap-arbitrary-range-popcoun=
t/webrev.00/webrev/
> >
> > This adds the ability to call BitMap::count_one_bits on an arbitrary bi=
t
> > region, not just on the whole BitMap. I need this for the new Metaspace
> > prototype.
> >
> > Note that while it would be cool to use platform dependent popcnt
> > instructions here, that is not the goal of this fix. This just expands =
on
> > the existing implementation of BitMap::count_one_bits() using the
> algorithm
> > in population:count.hpp.
> >
> > It comes with quite thorough gtests. I ran the gtests on little and big
> > endian machines and all is well. Submit tests also ran through.
> >
> > Thanks, Thomas
>
> Looks good.
>
>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic