Remote dealloc refactor. (#138)

Improve remote dealloc

- Outline the slow path to improve code gen significantly

- Handle message queue only on slow path for remote dealloc.

- Change remote size to count down 0, so fast path does not need a constant.

- Use signed value so that branch does not depend on addition.
This commit is contained in:
Matthew Parkinson
2020-03-10 08:12:57 +00:00
committed by GitHub
parent 31da639f49
commit 76eaf1adad
3 changed files with 26 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ namespace snmalloc
;
// Return remote small allocs when the local cache reaches this size.
static constexpr size_t REMOTE_CACHE =
static constexpr int64_t REMOTE_CACHE =
#ifdef USE_REMOTE_CACHE
USE_REMOTE_CACHE
#else