RFR (L, but tedious) 8188220: Remove Atomic::*_ptr() uses and overloads from hotspot
Kim Barrett
kim.barrett at oracle.com
Mon Oct 16 17:14:48 UTC 2017
> On Oct 16, 2017, at 9:13 AM, coleen.phillimore at oracle.com wrote:
>>>> Cant define const intptr_t _LBIT =1; in a class in our version of C++.
>> Sorry, please explain? If you tried to move it into SplitWord, that doesn’t work;
>> unions are not permitted to have static data members (I don’t off-hand know why,
>> just that it’s explicitly forbidden).
>>
>> And you left the seemingly unused Address member in SplitWord.
>
> This is the compilation error I get:
>
> /scratch/cphillim/hg/10ptr2/open/src/hotspot/share/runtime/mutex.hpp:124:33: error: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [-Werror]
> const intptr_t _NEW_LOCKBIT = 1;
Needs “static” in a class.
More information about the hotspot-dev
mailing list