Removing some casts and uses of void*

This commit is contained in:
Matthew Parkinson
2019-04-25 10:19:42 +01:00
committed by Matthew Parkinson
parent 2c613b4f8a
commit 47428a096c
4 changed files with 11 additions and 12 deletions

View File

@@ -84,6 +84,8 @@ namespace snmalloc
;
// The remaining values are derived, not configurable.
static constexpr size_t POINTER_BITS =
bits::next_pow2_bits_const(sizeof(uintptr_t));
// Used to isolate values on cache lines to prevent false sharing.
static constexpr size_t CACHELINE_SIZE = 64;