diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-04-01 20:12:59 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-04-01 20:12:59 (GMT) |
commit | 6169f09d64caf4c36936bc8caeaeb5448f72afac (patch) | |
tree | 4d6dbb802be0a26f6755228718a0f96e14b30a1f /Objects/obmalloc.c | |
parent | f4dd65db1d917fe046e2c6eea70dfb6158e1e3dd (diff) | |
download | cpython-6169f09d64caf4c36936bc8caeaeb5448f72afac.zip cpython-6169f09d64caf4c36936bc8caeaeb5448f72afac.tar.gz cpython-6169f09d64caf4c36936bc8caeaeb5448f72afac.tar.bz2 |
Fixed errors in two comments.
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r-- | Objects/obmalloc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index 94e23d7..9353ba8 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c @@ -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; |