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

Kim Barrett kim.barrett at oracle.com
Mon Jan 21 01:37:39 UTC 2019


> On Jan 20, 2019, at 3:09 PM, Aleksey Shipilev <shade at redhat.com> wrote:
> 
> 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

I suspect the reason I didn’t see this failure is the absence of Shenandoah in my testing.
I didn’t find the #include chain to prove that (though I didn’t try very hard, either).




More information about the hotspot-gc-dev mailing list