From ca70856dc186b919aaaddb084f58a9570038aa2c Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Mon, 16 Aug 2021 20:58:11 +0100 Subject: [PATCH] CapPtr: remove a stale static assert In the new world order, we will actually operate on AllocUser-bound pointers, such as slabs' free lists. --- src/ds/ptrwrap.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/ds/ptrwrap.h b/src/ds/ptrwrap.h index 11c9926..359d4e9 100644 --- a/src/ds/ptrwrap.h +++ b/src/ds/ptrwrap.h @@ -246,15 +246,6 @@ namespace snmalloc SNMALLOC_FAST_PATH T* operator->() const { - /* - * Alloc-bounded, platform-constrained pointers are associated with - * objects coming from or going to the client; we should be doing nothing - * with them. - */ - static_assert( - (bounds::spatial != capptr::dimension::Spatial::Alloc) || - (bounds::address_space_control != - capptr::dimension::AddressSpaceControl::User)); return this->unsafe_capptr; }