Skip to content

Commit

Permalink
obmalloc: Remove unused variable. (pythonGH-98770)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp authored Oct 27, 2022
1 parent 723ebe7 commit bded5ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Objects/obmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3000,7 +3000,6 @@ _PyObject_DebugMallocStats(FILE *out)
* will be living in full pools -- would be a shame to miss them.
*/
for (i = 0; i < maxarenas; ++i) {
uint j;
uintptr_t base = arenas[i].address;

/* Skip arenas which are not allocated. */
Expand All @@ -3019,8 +3018,7 @@ _PyObject_DebugMallocStats(FILE *out)

/* visit every pool in the arena */
assert(base <= (uintptr_t) arenas[i].pool_address);
for (j = 0; base < (uintptr_t) arenas[i].pool_address;
++j, base += POOL_SIZE) {
for (; base < (uintptr_t) arenas[i].pool_address; base += POOL_SIZE) {
poolp p = (poolp)base;
const uint sz = p->szidx;
uint freeblocks;
Expand Down

0 comments on commit bded5ed

Please sign in to comment.