https://github.com/python/cpython/commit/206de4155b01f6285c5551d2224391fa1fa0ac14
commit: 206de4155b01f6285c5551d2224391fa1fa0ac14
branch: main
author: Neil Schemenauer <[email protected]>
committer: nascheme <[email protected]>
date: 2024-10-15T11:47:20-07:00
summary:
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.
files:
M Include/internal/pycore_obmalloc.h
diff --git a/Include/internal/pycore_obmalloc.h
b/Include/internal/pycore_obmalloc.h
index 9140d8f08f0af1..a7ba8f340737aa 100644
--- a/Include/internal/pycore_obmalloc.h
+++ b/Include/internal/pycore_obmalloc.h
@@ -255,8 +255,8 @@ struct pool_header {
union { pymem_block *_padding;
uint count; } ref; /* number of allocated blocks */
pymem_block *freeblock; /* pool's free list head */
- struct pool_header *nextpool; /* next pool of this size class */
- struct pool_header *prevpool; /* previous pool "" */
+ struct pool_header *nextpool; /* see "Pool table" for meaning */
+ struct pool_header *prevpool; /* " */
uint arenaindex; /* index into arenas of base adr */
uint szidx; /* block size class index */
uint nextoffset; /* bytes to virgin block */
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]