RFR (S): 8035815 Cache-align and pad the fast card cache
Stefan Karlsson
stefan.karlsson at oracle.com
Tue Mar 4 07:25:39 UTC 2014
Hi Thomas,
On 2014-03-03 12:33, Thomas Schatzl wrote:
> Hi all,
>
> can I have reviews for the following change, another break-out of the
> 8027295 change (will update its webrev soon).
>
> Following Stefan K.'s suggestion, it makes the padding of the fast card
> cache to avoid false sharing a separate changeset.
>
> It adds a new class in padding.inline.hpp which performs allocation and
> the padding of the data structure.
>
> Webrev:
> http://cr.openjdk.java.net/~tschatzl/8035815/webrev/
Thanks for breaking this out into a separate change set and for moving
the padding to the padded.* files.
http://cr.openjdk.java.net/~tschatzl/8035815/webrev/src/share/vm/memory/padded.hpp.frames.html
- The "Jagged" part of the PaddedJagged2DArray indicates that the rows
are of different length, which isn't the case. Can we rename it to just
Padded2DArray?
- Your indentation are off by one. See the code above in the file.
http://cr.openjdk.java.net/~tschatzl/8035815/webrev/src/share/vm/memory/padded.inline.hpp.frames.html
- Could you add some blank lines to make the code less compact? For
example, at line 59, 65, and 74.
Otherwise, this looks good to me.
thanks,
StefanK
>
> CR:
> https://bugs.openjdk.java.net/browse/JDK-8035815
>
> Testing:
> jprt
>
> Thanks,
> Thomas
>
More information about the hotspot-gc-dev
mailing list