[9, P1] RFR (S/M): 8180048: Interned string and symbol table leak memory during parallel unlinking
Aleksey Shipilev
shade at redhat.com
Fri May 12 07:35:55 UTC 2017
On 05/12/2017 09:28 AM, Mikael Gerdin wrote:
> Hi Aleksey,
>
> On 2017-05-12 08:49, Aleksey Shipilev wrote:
>> On 05/12/2017 03:38 AM, David Holmes wrote:
>>> On 12/05/2017 2:26 AM, Aleksey Shipilev wrote:
>>>> Nits:
>>>>
>>>> *) Modifier order?
>>>> 176 BasicHashtableEntry<F>* volatile _free_list;
>>>
>>> _free_list is updated lock-free using Atomic::cmpxchg_ptr so it is appropriate
>>> to mark it as being volatile.
>>
>> Of course. My comment was about the modifier _order_, see in the same file:
>>
>> 176 BasicHashtableEntry<F>* volatile _free_list;
>
> For pointer types there is actually a difference between
>
> volatile Foo* _ptr;
>
> and
>
> Foo* volatile _ptr;
>
> in the first case _ptr is a non-volatile pointer to a volatile Foo and in the
> second case _ptr is a volatile pointer to a non-volatile Foo.
Argh. Gotta love this language. This is not the first time I forget about this
difference.
Thanks,
-Aleksey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://mail.openjdk.org/pipermail/hotspot-gc-dev/attachments/20170512/13d91db4/signature.asc>
More information about the hotspot-gc-dev
mailing list