Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3bface0

Browse files
committed
Use FT_ATOMIC_LOAD_UINTPTR_ACQUIRE for INSTRUMENTED_RESUME too
1 parent c39f9e8 commit 3bface0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ dummy_func(
180180

181181
inst(INSTRUMENTED_RESUME, (--)) {
182182
uintptr_t global_version = _Py_atomic_load_uintptr_relaxed(&tstate->eval_breaker) & ~_PY_EVAL_EVENTS_MASK;
183-
uintptr_t code_version = _PyFrame_GetCode(frame)->_co_instrumentation_version;
183+
uintptr_t code_version = FT_ATOMIC_LOAD_UINTPTR_ACQUIRE(_PyFrame_GetCode(frame)->_co_instrumentation_version);
184184
if (code_version != global_version) {
185185
if (_Py_Instrument(_PyFrame_GetCode(frame), tstate->interp)) {
186186
ERROR_NO_POP();

Python/generated_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)