summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2024-06-26 05:11:32 (GMT)
committerGitHub <noreply@github.com>2024-06-26 05:11:32 (GMT)
commit82235449b85165add62c1b200299456a50a1d097 (patch)
treefb09032dd34f2c164b439b57ec0dff8c6e0c7470 /Include
parent7fb32e02092922b0256d7be91bbf80767eb2ca46 (diff)
downloadcpython-82235449b85165add62c1b200299456a50a1d097.zip
cpython-82235449b85165add62c1b200299456a50a1d097.tar.gz
cpython-82235449b85165add62c1b200299456a50a1d097.tar.bz2
gh-107803: fix thread safety issue in double linked list implementation (#121007)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_object.h b/Include/internal/pycore_object.h
index 311f295..ebb0f30 100644
--- a/Include/internal/pycore_object.h
+++ b/Include/internal/pycore_object.h
@@ -126,8 +126,8 @@ static inline void _Py_RefcntAdd(PyObject* op, Py_ssize_t n)
}
#define _Py_RefcntAdd(op, n) _Py_RefcntAdd(_PyObject_CAST(op), n)
-extern void _Py_SetImmortal(PyObject *op);
-extern void _Py_SetImmortalUntracked(PyObject *op);
+PyAPI_FUNC(void) _Py_SetImmortal(PyObject *op);
+PyAPI_FUNC(void) _Py_SetImmortalUntracked(PyObject *op);
// Makes an immortal object mortal again with the specified refcnt. Should only
// be used during runtime finalization.