We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db12910 commit 74d7a13Copy full SHA for 74d7a13
1 file changed
include/dbscan/pbbs/scheduler.h
@@ -74,6 +74,9 @@ struct Deque {
74
tag_t tag;
75
qidx top;
76
};
77
+ // Catches layout issues at compile time on platforms where age_t is not exactly 8 bytes,
78
+ // which would break the lock-free atomic CAS in the work-stealing deque.
79
+ static_assert(sizeof(age_t) == sizeof(int64_t), "age_t must be 8 bytes for atomic CAS");
80
81
// align to avoid false sharing
82
struct alignas(64) padded_job {
0 commit comments