GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Subinterpreter Pending Calls Never Run · Issue #104812 · python/cpython

Subinterpreter Pending Calls Never Run  #104812

New issue
Copy link
New issue
Copy link
Closed
Closed
Subinterpreter Pending Calls Never Run #104812
Copy link
Assignees
ericsnowcurrently
Labels
3.12only security fixesonly security fixes3.13only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@ericsnowcurrently
ericsnowcurrently
opened on May 23, 2023
Issue body actions

A while back we moved the pending calls to PyInterpreterState. Then in 2020 we made it so pending calls would only run in the main thread of the main interpreter. Doing so renders the per-interpreter pending calls state pointless and prevents us from making use of pending calls for subinterpreters.

Linked PRs

  • gh-104812: Run Pending Calls in any Thread #104813
  • [3.12] gh-104812: Run Pending Calls in any Thread (gh-104813) #105752
  • gh-104812: Skip Pending Calls Tests if No Threading #105761

Activity

  1. ericsnowcurrently
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    topic-subinterpreters
    3.12only security fixesonly security fixes
    3.13only security fixesonly security fixes
    on May 23, 2023
  2. ericsnowcurrently
    self-assigned this
    on May 23, 2023
  3. github-project-automation
    added this to Subinterpreterson May 23, 2023
  4. github-project-automation
    moved this to Todo in Subinterpreterson May 23, 2023
  5. ericsnowcurrently commented on May 23, 2023

    @ericsnowcurrently
    ericsnowcurrently
    on May 23, 2023
    MemberAuthor
    More actions

    We also need to look at how to handle overflow when the number of pending calls reaches NPENDINGCALLS, whether bumping the number, or moving to a linked list, or something else.

  6. ericsnowcurrently commented on Jun 5, 2023

    @ericsnowcurrently
    ericsnowcurrently
    on Jun 5, 2023
    MemberAuthor
    More actions

    maybe related: gh-84412

  7. ericsnowcurrently
    added 5 commits that reference this issue on Jun 13, 2023

    gh-104812: Run Pending Calls in any Thread (gh-104813)

    757b402

    pythongh-104812: Run Pending Calls in any Thread (pythongh-104813)

    0fb86c7

    pythongh-104812: Run Pending Calls in any Thread (pythongh-104813)

    f95336b

    gh-104812: Skip Pending Calls Tests if No Threading (gh-105761)

    fcf0647

    [3.12] gh-104812: Run Pending Calls in any Thread (gh-104813) (gh-105752

    33d3069
  8. ericsnowcurrently
    closed this as completedon Jun 14, 2023
  9. github-project-automation
    moved this from Todo to Done in Subinterpreterson Jun 14, 2023
  10. efroemling
    added a commit that references this issue on Apr 28, 2026

    Skip test_enable_max_threads on free-threading builds

    4689f4e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ericsnowcurrently
    ericsnowcurrently

Labels

3.12only security fixesonly security fixes3.13only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

  • Subinterpreters
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.