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

Kim Barrett kim.barrett at oracle.com
Sun Jan 20 18:56:21 UTC 2019


> 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?



More information about the hotspot-gc-dev mailing list