We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9338e9a commit 6a1d165Copy full SHA for 6a1d165
Objects/obmalloc.c
@@ -2962,7 +2962,6 @@ _PyObject_DebugMallocStats(FILE *out)
2962
* will be living in full pools -- would be a shame to miss them.
2963
*/
2964
for (i = 0; i < maxarenas; ++i) {
2965
- uint j;
2966
uintptr_t base = arenas[i].address;
2967
2968
/* Skip arenas which are not allocated. */
@@ -2981,8 +2980,7 @@ _PyObject_DebugMallocStats(FILE *out)
2981
2980
2982
/* visit every pool in the arena */
2983
assert(base <= (uintptr_t) arenas[i].pool_address);
2984
- for (j = 0; base < (uintptr_t) arenas[i].pool_address;
2985
- ++j, base += POOL_SIZE) {
+ for (; base < (uintptr_t) arenas[i].pool_address; base += POOL_SIZE) {
2986
poolp p = (poolp)base;
2987
const uint sz = p->szidx;
2988
uint freeblocks;
0 commit comments