aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-02 17:15:43 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-02 17:15:43 -0400
commit023ce4c1bb4e883c7461ccad616fe73ae88e2597 (patch)
tree2db71dd9933d3f92a9e19f5415b8b63c370f28d0
parent0631fb21c1726c55518d63792399919d6119a9b7 (diff)
Remove speculative fix
-rw-r--r--src/stdlib/tables.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stdlib/tables.c b/src/stdlib/tables.c
index cbd96395..c374f26f 100644
--- a/src/stdlib/tables.c
+++ b/src/stdlib/tables.c
@@ -146,9 +146,7 @@ static void Table$set_bucket(Table_t *t, const void *entry, int32_t index, const
hshow(t);
const void *key = entry;
bucket_t *buckets = t->bucket_info->buckets;
- // NOTE: I'm not sure why this needs to be marked `volatile`, but it fixes
- // a memory issue that was hard to debug.
- volatile uint64_t hash = HASH_KEY(*t, key);
+ uint64_t hash = HASH_KEY(*t, key);
hdebug("Hash value (mod ", (int32_t)t->bucket_info->count, ") = ", hash, "\n");
bucket_t *bucket = &buckets[hash];
if (!bucket->occupied) {