mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
gh-117657: Make PyType_HasFeature (exported version) atomic (#120484)
Make PyType_HasFeature (exported version) atomic
This commit is contained in:
parent
99d62f902e
commit
6f63dfff6f
2 changed files with 6 additions and 2 deletions
|
@ -3599,7 +3599,7 @@ type_init(PyObject *cls, PyObject *args, PyObject *kwds)
|
|||
unsigned long
|
||||
PyType_GetFlags(PyTypeObject *type)
|
||||
{
|
||||
return type->tp_flags;
|
||||
return FT_ATOMIC_LOAD_ULONG_RELAXED(type->tp_flags);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue