RFR: 8308097: Generational ZGC: Update constructor syntax

David Holmes dholmes at openjdk.org
Tue May 16 07:43:44 UTC 2023


On Mon, 15 May 2023 13:11:42 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> ZGC's current constructor syntax works well with some editors, but not all. There is a wish to move over from the current syntax:
> 
> 
> ZClass:ZClass() :
>     ZSuper(),
>     _member0,
>     _member1 {
>   // Code
>   doit();
> }
> 
> 
> to the following syntax:
> 
> ZClass:ZClass()
>   : ZSuper(),
>     _member0,
>     _member1 {
>   // Code
>   doit();
> }
> 
> 
> I propose that make this change.

Is this something that should be in the style guide? Presumably we have constructors all through the hotspot code that may not conform to this style.

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

PR Review: https://git.openjdk.org/jdk/pull/13987#pullrequestreview-1427925321


More information about the hotspot-gc-dev mailing list