← 输入框|github.com|刷新
Skip to content

Incremental GC double-counts work done during the marking phase #141890

Closed as not planned

Description

@brandtbucher

Bug report

Both mark_at_start and gc_collect_increment (its caller) decrement work_to_do by the number of objects marked. This can result in incremental collections being delayed longer than expected... I think in extreme situations, collection could be delayed indefinitely, resulting in leaks.

The fix is simple, just remove one of the decrements.

Linked PRs

Activity

  1. self-assigned this
    on Nov 24, 2025
  2. added
    type-bug
    interpreter-core
    3.14
    3.15
    on Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.143.15interpreter-coretype-bug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions