wingo pushed a commit to branch wip-whippet in repository guile. commit 05fe52f66614923c9402ba5ee482691417d747e9 Author: Andy Wingo <wi...@igalia.com> AuthorDate: Thu Jul 3 10:13:49 2025 +0200
nofl: Fix bug clearing pinned bits --- src/nofl-space.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nofl-space.h b/src/nofl-space.h index d9a3fd99a..9604a83d9 100644 --- a/src/nofl-space.h +++ b/src/nofl-space.h @@ -984,7 +984,7 @@ static void nofl_clear_pinned_bits_in_block(struct nofl_block_ref block) { uint8_t *meta = nofl_metadata_byte_for_addr(block.addr); uint64_t mask = broadcast_byte (NOFL_METADATA_BYTE_PINNED); - for (size_t i = 0; i < NOFL_GRANULES_PER_BLOCK; i++, meta += 8) { + for (size_t i = 0; i < NOFL_GRANULES_PER_BLOCK; i += 8, meta += 8) { uint64_t vals = load_eight_aligned_bytes(meta); if (vals & mask) store_eight_aligned_bytes(meta, vals & ~mask);