RFR: 8272773: Investigate making card table size configurable [v5]

Thomas Schatzl tschatzl at openjdk.java.net
Wed Nov 17 15:25:44 UTC 2021


On Tue, 16 Nov 2021 08:02:40 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> Let's see what the second reviewer thinks. Otherwise this can be done separately as it might hide the interesting part of this change.
>
> Not a review (yet), just a response to these questions.
> 
> Public data members are very rare in HotSpot code.  There are a few POD/standard layout classes (examples include G1BufferNodeList and OopStorage::BasicParState::IterationData), but otherwise accessor functions are preferred.  The style-guide says
> "Use public accessor functions for member variables accessed outside the class."
> 
> The style-guide says this:
> "Class data member names have a leading underscore, and use lowercase with words separated by a single underscore (_foo_bar)."
> It makes no distinction for public or not, or for static or not.  That is intentional, based on some discussion about that question when I was updating the style-guide a while ago.
> 
> Of course, there are probably counter-examples to both of these lurking in the code base.

I would prefer if this introduction of getters were moved to an extra CR, but I'm good to do that now as well; not so much a problem with the `block_*` ones, more with the ones in `CardTable` that add lots of noise.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5838



More information about the hotspot-gc-dev mailing list