Factor sizeclass meta-data for cache locality

This commit splits the sizeclass meta-data to generate better cache
locality for various lookups for checking for size and start of
sizeclasses.

Also, contains some tidying including removing sizeclasses covering
large range. This is left over from an alternative design for large
classes that is no longer in use.
This commit is contained in:
Matthew Parkinson
2021-08-25 14:49:06 +01:00
committed by Matthew Parkinson
parent 0f70494d55
commit 44416ed70e
4 changed files with 115 additions and 107 deletions

View File

@@ -415,7 +415,7 @@ void test_static_sized_allocs()
{
// For each small, medium, and large class, do each kind dealloc. This is
// mostly to ensure that all of these forms compile.
for (size_t sc = 0; sc < NUM_SIZECLASSES_EXTENDED; sc++)
for (size_t sc = 0; sc < NUM_SIZECLASSES; sc++)
{
// test_static_sized_alloc<sc, 0>();
// test_static_sized_alloc<sc, 1>();