Skip to content

gh-129752: Don't update adaptive counters when TLBC=0 in free-threading. - #155497

Open
corona10 wants to merge 1 commit into
python:mainfrom
corona10:gh-129752
Open

gh-129752: Don't update adaptive counters when TLBC=0 in free-threading.#155497
corona10 wants to merge 1 commit into
python:mainfrom
corona10:gh-129752

Conversation

@corona10

@corona10 corona10 commented Aug 10, 2026

Copy link
Copy Markdown
Member

@corona10

corona10 commented Aug 10, 2026

Copy link
Copy Markdown
Member Author

@mpage @colesbury

  • Adaptive counters are initialized to the unreachable state when thread-local bytecode is disabled, so this PR skips updating them. (I didn't want to make it complex for TLBC=0 case)
  • I expect that the performance impact should be within noise. (The default build is unchanged.)

@corona10 corona10 added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant