8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e475ad commit cfbc01fCopy full SHA for cfbc01f
Objects/obmalloc.c
@@ -2999,7 +2999,6 @@ _PyObject_DebugMallocStats(FILE *out)
2999
* will be living in full pools -- would be a shame to miss them.
3000
*/
3001
for (i = 0; i < maxarenas; ++i) {
3002
- uint j;
3003
uintptr_t base = arenas[i].address;
3004
3005
/* Skip arenas which are not allocated. */
@@ -3018,8 +3017,7 @@ _PyObject_DebugMallocStats(FILE *out)
3018
3017
3019
/* visit every pool in the arena */
3020
assert(base <= (uintptr_t) arenas[i].pool_address);
3021
- for (j = 0; base < (uintptr_t) arenas[i].pool_address;
3022
- ++j, base += POOL_SIZE) {
+ for (; base < (uintptr_t) arenas[i].pool_address; base += POOL_SIZE) {
3023
poolp p = (poolp)base;
3024
const uint sz = p->szidx;
3025
uint freeblocks;
0 commit comments