JDK-8253417 : Windows 32bit fastdebug compile error padded.hpp
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 16
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86
  • Submitted: 2020-09-21
  • Updated: 2020-09-24
  • Resolved: 2020-09-24
Related Reports
Duplicate :  
Description
Currently our Windows 32bit fastdebug build (done with VS2017) runs into this 
 compile error:

d:\builddir\jdk\src\hotspot\share\memory/padded.hpp(79): error C2975: 'pad_size': invalid template argument for 'PaddedEndImpl', expected compile-time constant expression
d:\builddir\jdk\src\hotspot\share\memory/padded.hpp(60): note: see declaration of 'pad_size'
d:\builddir\jdk\src\hotspot\share\gc/shared/satbMarkQueue.hpp(99): note: see reference to class template instantiation 'PaddedEnd<BufferNode::Stack,64>' being compiled
d:\builddir\jdk\src\hotspot\share\memory/padded.hpp(46): error C3615: constexpr function 'alignment_mask' cannot result in a constant expression
d:\builddir\jdk\src\hotspot\share\utilities/align.hpp(39): note: failure was caused by an illegal statement or expression
d:\builddir\jdk\src\hotspot\share\gc/shared/taskqueue.hpp(456): note: see reference to class template instantiation 'Padded<ShenandoahBufferedOverflowTaskQueue,64>' being compiled
d:\builddir\jdk\src\hotspot\share\gc/shenandoah/shenandoahTaskqueue.hpp(252): note: see reference to class template instantiation 'GenericTaskQueueSet<T,mtGC>' being compiled
        with
        [
            T=ShenandoahObjToScanQueue
        ]

Comments
Closing as duplicate of JDK-8253167 given the last comment. Please reopen if the error shows up again.
24-09-2020

Hi Kim, the Windows 32bit fastdebug error is gone now (maybe related to JDK-8253167 fix?) .
22-09-2020

Does this failure still occur after JDK-8253167 is fixed? As noted there, win32 was expected to have the same problem, and should have also been fixed by that change.
21-09-2020