From 8f520e52d7d4081a0835374c7a448116baac64ab Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 2 Nov 2026 20:39:26 +0100 Subject: Turn the bucket count into a knob, but keep cleaner wake-ups at a constant rate --- tests/t_mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/t_mutex.c') diff --git a/tests/t_mutex.c b/tests/t_mutex.c index e54e2fa..c0c41cc 100644 --- a/tests/t_mutex.c +++ b/tests/t_mutex.c @@ -24,7 +24,7 @@ static void hash_for_bucket(ot_hash hash, int bucket) { } static void case_a_hash_names_its_bucket(void) { - static const int buckets[] = {0, 1, 2, 17, 511, 512, OT_BUCKET_COUNT - 1}; + static const int buckets[] = {0, 1, 2, 17, OT_BUCKET_COUNT / 2 - 1, OT_BUCKET_COUNT / 2, OT_BUCKET_COUNT - 1}; size_t i; test_case("a hash is served by the bucket its leading bits name"); -- cgit v1.3