Skip to content

Commit fbaa5c1

Browse files
committed
Reenable tailer validation
1 parent 574dab1 commit fbaa5c1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tyndall/ipc/shmem.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,10 @@ class shmem_buf {
189189
assert(reinterpret_cast<uintptr_t>(buf) % CACHELINE_BYTES == 0);
190190

191191
// put type tailer in the end for validation
192-
// static_assert(
193-
// sizeof(tailer) < CACHELINE_BYTES,
194-
// "tailer needs to fit in a single section, as aligned by "
195-
// M_STRINGIFY(
196-
// CACHELINE_BYTES));
192+
static_assert(
193+
sizeof(tailer) < CACHELINE_BYTES,
194+
"tailer needs to fit in a single section, as aligned by " M_STRINGIFY(
195+
CACHELINE_BYTES));
197196
auto tailer_loc =
198197
reinterpret_cast<decltype(tailer) *>(&data_structure() + 1);
199198

0 commit comments

Comments
 (0)