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