From cf7c1afb9354914224c2afa1d55ae7362ef3f459 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 14 Mar 2016 08:04:47 +0100 Subject: [PATCH] tag/TagPool: use prime number for NUM_SLOTS --- src/tag/TagPool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tag/TagPool.cxx b/src/tag/TagPool.cxx index 29f605337..dc8cc5551 100644 --- a/src/tag/TagPool.cxx +++ b/src/tag/TagPool.cxx @@ -29,7 +29,7 @@ Mutex tag_pool_lock; -static constexpr size_t NUM_SLOTS = 4096; +static constexpr size_t NUM_SLOTS = 4093; struct TagPoolSlot { TagPoolSlot *next;