Skip to content

Commit 3b2c220

Browse files
committed
Use atomic load in _CHECK_MANAGED_OBJECT_HAS_VALUES
1 parent 9fda5db commit 3b2c220

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ dummy_func(
21362136
PyObject *owner_o = PyStackRef_AsPyObjectBorrow(owner);
21372137
assert(Py_TYPE(owner_o)->tp_dictoffset < 0);
21382138
assert(Py_TYPE(owner_o)->tp_flags & Py_TPFLAGS_INLINE_VALUES);
2139-
DEOPT_IF(!_PyObject_InlineValues(owner_o)->valid);
2139+
DEOPT_IF(!FT_ATOMIC_LOAD_UINT8(_PyObject_InlineValues(owner_o)->valid));
21402140
}
21412141

21422142
split op(_LOAD_ATTR_INSTANCE_VALUE, (offset/1, owner -- attr, null if (oparg & 1))) {

Python/executor_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.

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)