]> granicus.if.org Git - python/commitdiff
Fixed errors in two comments.
authorTim Peters <tim.peters@gmail.com>
Mon, 1 Apr 2002 20:12:59 +0000 (20:12 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 1 Apr 2002 20:12:59 +0000 (20:12 +0000)
Objects/obmalloc.c

index 94e23d7a83111e7dad45020901c96c9760fbbad6..9353ba8c8d9295f4e2e94a4f34b358e8bf89702b 100644 (file)
@@ -1208,7 +1208,7 @@ _PyMalloc_DebugDumpStats(void)
        /* # of free blocks per class index */
        ulong numfreeblocks[SMALL_REQUEST_THRESHOLD >> ALIGNMENT_SHIFT];
        ulong grandtotal;       /* total # of allocated bytes */
-       ulong freegrandtotal;   /* total # of available bytes in used blocks */
+       ulong freegrandtotal;   /* total # of available bytes in used pools */
 
        fprintf(stderr, "%u arenas * %d bytes/arena = %lu total bytes.\n",
                narenas, ARENA_SIZE, narenas * (ulong)ARENA_SIZE);
@@ -1220,8 +1220,9 @@ _PyMalloc_DebugDumpStats(void)
        for (i = 0; i < numclasses; ++i)
                numpools[i] = numblocks[i] = numfreeblocks[i] = 0;
 
-       /* Because empty pools aren't linked to from anything, it's easiest
-        * to march over all the arenas.
+       /* Because full pools aren't linked to from anything, it's easiest
+        * to march over all the arenas.  If we're lucky, most of the memory
+        * will be living in full pools -- would be a shame to miss them.
         */
        for (i = 0; i < narenas; ++i) {
                uint poolsinarena;