diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 20:39:26 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 20:39:26 +0100 |
| commit | 8f520e52d7d4081a0835374c7a448116baac64ab (patch) | |
| tree | fdb3c2e8d49aa8c94d6fff357ef2d18f3e0e553c /tests | |
| parent | 7419a9524754dfc4222de2c4e4c22808b571477d (diff) | |
Turn the bucket count into a knob, but keep cleaner wake-ups at a constant rate
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/t_mutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | static void case_a_hash_names_its_bucket(void) { | 26 | static void case_a_hash_names_its_bucket(void) { |
| 27 | static const int buckets[] = {0, 1, 2, 17, 511, 512, OT_BUCKET_COUNT - 1}; | 27 | static const int buckets[] = {0, 1, 2, 17, OT_BUCKET_COUNT / 2 - 1, OT_BUCKET_COUNT / 2, OT_BUCKET_COUNT - 1}; |
| 28 | size_t i; | 28 | size_t i; |
| 29 | 29 | ||
| 30 | test_case("a hash is served by the bucket its leading bits name"); | 30 | test_case("a hash is served by the bucket its leading bits name"); |
