Skip to content

TypedPython: #141 phase 2, GIL hand-off in snapshot-holding functions #154

Closed

Description

@b-re-w

Phase 1 (feat/tp-eval-breaker) polls the eval breaker everywhere except in functions holding an array copy-in or an entry-globals snapshot. Phase 2 implements the hand-off there according to the decision issue (options (i)/(iii)). Done when: a second thread progresses during a long compiled array loop, with tests that a concurrent list resize gives the CPython-identical outcome (if (i)).

Activity

  1. b-re-w commented on Oct 3, 2026

    @b-re-w
    MemberAuthor

    Merged into #159 (leader decision, 2026-10-04): with free-threaded 3.15t as the only build there is no GIL to hand off. The remaining work is re-validating arrays at poll points inside snapshot-holding functions (critical sections are suspended whenever the thread detaches), which #159 now covers. The rare changed-length/type case stays a decision in #152.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions