Tidy TODOs from Free List
* Add extra key to freelist. This follows the encoding Cedric suggested for a signature of two things. Free list key now has a pair of keys for encoding previous pointer. This makes it harder to extract the underlying keys out of the multiplication. * Apply SFINAE to the extract_segment.
This commit is contained in:
committed by
Matthew Parkinson
parent
15e3052087
commit
0af1ee3bef
@@ -27,7 +27,7 @@ namespace snmalloc
|
||||
/**
|
||||
* Global key for all remote lists.
|
||||
*/
|
||||
inline static FreeListKey key_global(0xdeadbeef, 0xdeadbeef);
|
||||
inline static FreeListKey key_global(0xdeadbeef, 0xbeefdead, 0xdeadbeef);
|
||||
|
||||
struct alignas(REMOTE_MIN_ALIGN) RemoteAllocator
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user