From 95bad423a7a11135b467cc90e6f5a061e537f053 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Tue, 20 Jun 2023 12:16:45 -0400 Subject: [PATCH] Correct order of test based on #618 (#619) --- src/snmalloc/mem/remoteallocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snmalloc/mem/remoteallocator.h b/src/snmalloc/mem/remoteallocator.h index 5c95e1cab..2d15e6d11 100644 --- a/src/snmalloc/mem/remoteallocator.h +++ b/src/snmalloc/mem/remoteallocator.h @@ -65,8 +65,8 @@ namespace snmalloc void invariant() { SNMALLOC_ASSERT( - (back != nullptr) || - (address_cast(front.load()) == address_cast(&stub))); + (address_cast(front.load()) == address_cast(&stub)) || + (back != nullptr)); } void init()