Skip to content

refleak.py reports spurious leaks due to int allocation #155981

Description

@nascheme

Bug report

Bug description:

The refleak checker in Lib/test/libregrtest/refleak.py can pollute its own reference-count measurements and report a spurious leak. The int_pool structure is pre-populated only for common values between approximately -1000 and 1000. When memory-block deltas are large and unique, each repetition inserts a new integer into the pool. The refleak checker should not create Python objects that affect subsequent reference-count or allocated-block measurements.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions