[3.15] gh-129752: Don't update adaptive counters when TLBC=0 in free-… · python/cpython@d0484ab · GitHub
Skip to content

Commit d0484ab

Browse files
[3.15] gh-129752: Don't update adaptive counters when TLBC=0 in free-threading. (gh-155497) (#155647)
gh-129752: Don't update adaptive counters when TLBC=0 in free-threading. (gh-155497) (cherry picked from commit ee4fe00) Co-authored-by: Donghee Na <donghee.na@python.org>
1 parent 1c826a4 commit d0484ab

4 files changed

Lines changed: 28 additions & 1 deletion

File tree

Include/internal/pycore_backoff.h

Lines changed: 6 additions & 0 deletions

Lib/test/test_thread_local_bytecode.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def f(a, b, q=None):
108108
""")
109109
assert_python_ok("-X", "tlbc=1", "-c", code)
110110

111-
@support.skip_if_sanitizer("gh-129752: data race on adaptive counter", thread=True)
112111
def test_no_copies_if_tlbc_disabled(self):
113112
code = textwrap.dedent("""
114113
import queue
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Don't update adaptive counters in the free-threaded build when thread-local
2+
bytecode is disabled (``-X tlbc=0``). Patch by Donghee Na.

Python/ceval_macros.h

Lines changed: 20 additions & 0 deletions

0 commit comments

Comments
 (0)