Skip to content

Commit 257ba98

Browse files
committed
Improve comment about size of ARENA_BITS.
1 parent 3a69fa6 commit 257ba98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/obmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2984,7 +2984,7 @@ arena_map_is_marked(block *p)
29842984
return 0;
29852985
}
29862986
int i3 = MAP3_INDEX(p);
2987-
/* in order to fit tail into 32-bits, ARENA_BITS must be <= 32 */
2987+
/* ARENA_BITS must be < 32 so that the tail is a non-negative int32_t. */
29882988
int32_t hi = n->arenas[i3].tail_hi;
29892989
int32_t lo = n->arenas[i3].tail_lo;
29902990
int32_t tail = (int32_t)(AS_UINT(p) & ARENA_MASK);

0 commit comments

Comments
 (0)