We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99ba715 + 6343aee commit 541f772Copy full SHA for 541f772
include/swift/Runtime/AtomicWaitQueue.h
@@ -424,6 +424,10 @@ class AtomicWaitQueue {
424
private:
425
template <class... Args>
426
static Impl *createNewQueue(Args &&...args) {
427
+#if !defined(__cpp_aligned_new)
428
+ static_assert(std::alignment_of<Impl>::value <= __STDCPP_DEFAULT_NEW_ALIGNMENT__,
429
+ "type is over-aligned for non-alignment aware operator new");
430
+#endif
431
auto queue = new Impl(std::forward<Args>(args)...);
432
queue->WaitQueueLock.lock();
433
return queue;
0 commit comments