Skip to content

Immortal objects don't have the deferred bit set by default #129984

@DinoV

Description

@DinoV

Bug report

Bug description:

_PyObject_HEAD_INIT defines objects w/ an immortal reference count, but it doesn't set _PyGC_BITS_DEFERRED. This results in these objects (like small ints) not being cachable in the specializing interpreter loop for free threaded builds.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions