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.
This commit is contained in:
David Chisnall
2022-03-25 15:21:16 +00:00
committed by David Chisnall
parent deac29c576
commit dec65d1b4a

View File

@@ -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<SNMALLOC_CONCEPT(ConceptPAL) PAL, bool, typename>
friend class BackendAllocator;
capptr::Chunk<void> chunk;
public:
/**
* Expose the address of, though not the authority to, our corresponding
* chunk.