From dec65d1b4a4778c76c22532370d33948b9c697b8 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Fri, 25 Mar 2022 15:21:16 +0000 Subject: [PATCH] Make MetaCommon state public. C++ has no way of exposing it only to things that are backend implementations. Eventually this class should be made purely part of the CHERI back end. --- src/backend/metatypes.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/backend/metatypes.h b/src/backend/metatypes.h index 6646203..354d8f0 100644 --- a/src/backend/metatypes.h +++ b/src/backend/metatypes.h @@ -15,16 +15,10 @@ namespace snmalloc * This class's data is fully private but is friends with the relevant backend * types and, thus, is "opaque" to the frontend. */ - class MetaCommon + struct MetaCommon { - friend class ChunkAllocator; - - template - friend class BackendAllocator; - capptr::Chunk chunk; - public: /** * Expose the address of, though not the authority to, our corresponding * chunk.