Optionally consider RemoteAllocator heads Tame

This commit is contained in:
Nathaniel Wesley Filardo
2021-10-12 02:11:57 +01:00
committed by Nathaniel Wesley Filardo
parent 96155db640
commit 97950a9fca
4 changed files with 81 additions and 10 deletions

View File

@@ -77,6 +77,15 @@ namespace snmalloc
* for allocating core allocators.
*/
bool LocalAllocSupportsLazyInit = true;
/**
* Are the front and back pointers to the message queue in a RemoteAllocator
* considered to be capptr_bounds::Wildness::Tame (as opposed to Wild)?
* That is, is it presumed that clients or other potentialadversaries cannot
* access the front and back pointers themselves, even if they can access
* the queue nodes themselves (which are always considered Wild)?
*/
bool QueueHeadsAreTame = true;
};
/**