RFR: 8212826: Make PtrQueue free list lock-free - Build error in gtest

Aleksey Shipilev shade at redhat.com
Sun Jan 20 20:09:07 UTC 2019


On 1/20/19 7:56 PM, Kim Barrett wrote:
>> On Jan 20, 2019, at 9:08 AM, Langer, Christoph <christoph.langer at sap.com> wrote:
>>
>> Hi Kim,
>>
>> in my build on Windows I now get this:
>> c:/mercurial/jdk/test/hotspot/gtest/utilities/test_lockFreeStack.cpp(54): error C2921: redefinition: 'Stack': class template is being redeclared as 'typedef LockFreeStackTestElement::Stack Stack'
>> c:\mercurial\jdk\src\hotspot\share\utilities/stack.hpp(93): note: see declaration of 'Stack'
>> Seems like there's a conflict.
>>
>> Are you aware of that? Is there already a bug open for this?
> 
> It builds fine with the version of Windows we are using in our automated test setup.
> What version of Windows are you using?  We’re using VS2017 with MSVC++ 15.5.
> Or maybe there’s a configuration difference?

It fails for me with MSVC 2013 on Windows 7. Filed:
  https://bugs.openjdk.java.net/browse/JDK-8217423

I have a potential fix.

-Aleksey

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://mail.openjdk.org/pipermail/hotspot-gc-dev/attachments/20190120/1174d6dd/signature.asc>


More information about the hotspot-gc-dev mailing list