python / python/cpython

Implement Py_DECREF specializations for Py_GIL_DISABLED build

Open
#135,832 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

interpreter-core performance topic-free-threading type-feature
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Implement Py_DECREF specializations for Py_GIL_DISABLED build as mentioned at
https://github.com/python/cpython/blob/0d9d48959e050b66cb37a333940ebf4dc2a74e15/Include/internal/pycore_object.h#L275-L277

Linked PRs
  • gh-135833
  • gh-154779

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Include/internal/pycore_object.h at the referenced lines to understand the missing Py_DECREF specializations for Py_GIL_DISABLED builds. Review the linked work in gh-135833 and gh-154779 before proceeding; done means the requested specializations are implemented and the relevant build or test coverage passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.