Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Forward-port generational GC #148726

Copy link
Copy link
@sergey-miryanov

Description

@sergey-miryanov
Issue body actions

Feature or enhancement

Proposal:

It was decided to revert the incremental GC and restore the generational GC from Python 3.13.

After discussing with @nascheme, we plan to forward-port the generational GC from 3.13 with minimal changes.

Here is the plan:

3.14

  1. Forward-port the generational GC from 3.13 with minimal changes
  2. Backport the heap_size calculation logic

3.15

  1. Forward port from 3.14
  2. Backport weakref's callbacks changes (b6b99bf, 350c58b, 654b8d9)
  3. Backport changes required for pystats (c98c5b3)
  4. Backport GC frame for Tachyon (336366f)
  5. Backport extended data for callbacks: duration, candidates (598d4c6, 227b9d3)
  6. Backport gc-stats from external processes (Add a module for monitoring GC statistics #146527)

AFAICT, these are all the changes that need to be forward-ported or backported for the 3.14 and 3.15.

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

https://discuss.python.org/t/reverting-the-incremental-gc-in-python-3-14-and-3-15/107014

Linked PRs

Reactions are currently unavailable

Metadata

Metadata

Labels

3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.