RFR: 8225716: G1 GC: Undefined behaviour in G1BlockOffsetTablePart::block_at_or_preceding

Andrew Haley aph at redhat.com
Sat Jun 15 07:10:56 UTC 2019


On 6/14/19 10:51 PM, Kim Barrett wrote:
>> On Jun 14, 2019, at 3:32 PM, Kim Barrett <kim.barrett at oracle.com> wrote:
>>
>>> On Jun 14, 2019, at 11:23 AM, Andrew Haley <aph at redhat.com> wrote:
>>> One thing which gave me pause was the need to cast away const when
> 
> And just to be clear, it’s a const_cast to cast away _volatile_.  It’s unfortunate
> that const_cast has that double duty.

Yes, my mistake: I indeed meant cast away volatile.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671



More information about the hotspot-gc-dev mailing list