diff --git a/src/mem/alloc.h b/src/mem/alloc.h index 5b51954..1098224 100644 --- a/src/mem/alloc.h +++ b/src/mem/alloc.h @@ -561,8 +561,10 @@ namespace snmalloc l->last = r; } - void post(alloc_id_t id) + void post(LargeAlloc* large_allocator, alloc_id_t id) { + UNUSED(large_allocator); + // When the cache gets big, post lists to their target allocators. capacity = REMOTE_CACHE; @@ -896,7 +898,7 @@ namespace snmalloc return; stats().remote_post(); - remote.post(get_trunc_id()); + remote.post(&large_allocator, get_trunc_id()); } /** @@ -1565,7 +1567,7 @@ namespace snmalloc remote.dealloc(target->trunc_id(), offseted, sizeclass); stats().remote_post(); - remote.post(get_trunc_id()); + remote.post(&large_allocator, get_trunc_id()); } ChunkMap& chunkmap() diff --git a/src/mem/globalalloc.h b/src/mem/globalalloc.h index 16cf29a..ee6a417 100644 --- a/src/mem/globalalloc.h +++ b/src/mem/globalalloc.h @@ -126,7 +126,7 @@ namespace snmalloc if (alloc->remote.capacity < REMOTE_CACHE) { alloc->stats().remote_post(); - alloc->remote.post(alloc->get_trunc_id()); + alloc->remote.post(&alloc->large_allocator, alloc->get_trunc_id()); done = false; }