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:
Matthew Parkinson
2021-08-13 15:45:45 +01:00
committed by Matthew Parkinson
parent 15e3052087
commit 0af1ee3bef
3 changed files with 18 additions and 18 deletions

View File

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