mirror of
https://github.com/python/cpython.git
synced 2025-09-25 09:50:37 +00:00
obmalloc: Remove unused variable. (GH-98770)
This commit is contained in:
parent
723ebe76e7
commit
bded5edd9a
1 changed files with 1 additions and 3 deletions
|
@ -3000,7 +3000,6 @@ _PyObject_DebugMallocStats(FILE *out)
|
||||||
* will be living in full pools -- would be a shame to miss them.
|
* will be living in full pools -- would be a shame to miss them.
|
||||||
*/
|
*/
|
||||||
for (i = 0; i < maxarenas; ++i) {
|
for (i = 0; i < maxarenas; ++i) {
|
||||||
uint j;
|
|
||||||
uintptr_t base = arenas[i].address;
|
uintptr_t base = arenas[i].address;
|
||||||
|
|
||||||
/* Skip arenas which are not allocated. */
|
/* Skip arenas which are not allocated. */
|
||||||
|
@ -3019,8 +3018,7 @@ _PyObject_DebugMallocStats(FILE *out)
|
||||||
|
|
||||||
/* visit every pool in the arena */
|
/* visit every pool in the arena */
|
||||||
assert(base <= (uintptr_t) arenas[i].pool_address);
|
assert(base <= (uintptr_t) arenas[i].pool_address);
|
||||||
for (j = 0; base < (uintptr_t) arenas[i].pool_address;
|
for (; base < (uintptr_t) arenas[i].pool_address; base += POOL_SIZE) {
|
||||||
++j, base += POOL_SIZE) {
|
|
||||||
poolp p = (poolp)base;
|
poolp p = (poolp)base;
|
||||||
const uint sz = p->szidx;
|
const uint sz = p->szidx;
|
||||||
uint freeblocks;
|
uint freeblocks;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue