Skip to content

Commit 206de41

Browse files
authored
gh-92953: Improve nextpool/prevpool comment. (gh-125545)
The meaning of these links depends on which list the pool is part of. They are only the same size class if on the "usedpools" list.
1 parent aac89b5 commit 206de41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/internal/pycore_obmalloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ struct pool_header {
255255
union { pymem_block *_padding;
256256
uint count; } ref; /* number of allocated blocks */
257257
pymem_block *freeblock; /* pool's free list head */
258-
struct pool_header *nextpool; /* next pool of this size class */
259-
struct pool_header *prevpool; /* previous pool "" */
258+
struct pool_header *nextpool; /* see "Pool table" for meaning */
259+
struct pool_header *prevpool; /* " */
260260
uint arenaindex; /* index into arenas of base adr */
261261
uint szidx; /* block size class index */
262262
uint nextoffset; /* bytes to virgin block */

0 commit comments

Comments
 (0)