RFR: 8201327: Make Sensor deeply immutably thread safe

Martin Buchholz martinrb at google.com
Tue Apr 10 17:18:06 UTC 2018


On Mon, Apr 9, 2018 at 7:13 PM, Martin Buchholz <martinrb at google.com> wrote:

>
>
> On Mon, Apr 9, 2018 at 1:25 PM, Chris Hegarty <chris.hegarty at oracle.com>
> wrote:
>
>>
>> > except maybe the "initially false" and "initially 0" comments as they
>> are just documenting the default values and don't add anything.
>>
>> Yeah, I’ve done this before too, especially when removing default values
>> ( as if to prevent them from inadvertently creeping back in ).
>>
>
> If only there was standard concise wording for "intentionally using the
> field's default value, which is slightly more efficient and slightly more
> theoretically thread-safe, even though slightly less readable" ...
>
> // VM-initialized to false
>

I'm committing with the hinting wording

// VM-initialized to false
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20180410/67335454/attachment.html>


More information about the serviceability-dev mailing list