Skip to content

Commit 49cee23

Browse files
committed
Fixup concurrency safe
1 parent 87d003b commit 49cee23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/backend.h

+3
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ namespace snmalloc
239239
}
240240
else
241241
{
242+
static_assert(
243+
GlobalMetaRange::ConcurrencySafe,
244+
"Global meta data range needs to be concurrency safe.");
242245
typename GlobalMetaRange::State global_state;
243246
p = global_state->alloc_range(bits::next_pow2(size));
244247
}

0 commit comments

Comments
 (0)