зеркало из https://github.com/microsoft/snmalloc.git
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:
Родитель
deac29c576
Коммит
dec65d1b4a
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче