Using C++11+ in hotspot
Andrew Haley
aph at redhat.com
Tue Aug 7 14:00:02 UTC 2018
On 08/07/2018 06:48 AM, John Rose wrote:
> On Aug 6, 2018, at 9:54 PM, Martin Buchholz <martinrb at google.com> wrote:
>>
>> I don't know what is actually being copied here, but can't the underlying
>> type be atomic<address*> ?
>
> Yes, if we are allowed to cast some random sequence of metadata
> words to atomic<address*>[].
We're not. Well, we sort-of are because we use -fno-strict-aliasing, but that's
not standard C++11. Do we care? :-)
GCC builtins do what we need when we're using GCC, but then we don't need C++11.
--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the workshop-discuss
mailing list