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 коммит произвёл David Chisnall
Родитель deac29c576
Коммит dec65d1b4a
1 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -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.