]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92953: Improve nextpool/prevpool comment. (gh-125545)
authorNeil Schemenauer <nas-github@arctrix.com>
Tue, 15 Oct 2024 18:47:20 +0000 (11:47 -0700)
committerGitHub <noreply@github.com>
Tue, 15 Oct 2024 18:47:20 +0000 (11:47 -0700)
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.

Include/internal/pycore_obmalloc.h

index 9140d8f08f0af1e677a5234187050737ccb71955..a7ba8f340737aabc39a15e2bb40604f53d110cfa 100644 (file)
@@ -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         */