From 584e13c00081e78de6d14d9e23aa3fdcb720a858 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 29 Apr 2021 15:17:04 +0200 Subject: [PATCH 1/2] bpo-28254: Add PyGC_ functions to the stable ABI manifest --- Misc/stable_abi.txt | 6 ++++++ PC/python3dll.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/Misc/stable_abi.txt b/Misc/stable_abi.txt index efb2731f595a22..c5e75eab666fed 100644 --- a/Misc/stable_abi.txt +++ b/Misc/stable_abi.txt @@ -2142,3 +2142,9 @@ const Py_am_send # (Detailed comments aren't really needed for further entries: from here on # we can use version control logs.) +function PyGC_Disable + added 3.10 +function PyGC_Enable + added 3.10 +function PyGC_IsEnabled + added 3.10 diff --git a/PC/python3dll.c b/PC/python3dll.c index a53ec63e038f9f..574d4dcad9f75b 100755 --- a/PC/python3dll.c +++ b/PC/python3dll.c @@ -271,6 +271,9 @@ EXPORT_FUNC(PyFrame_GetCode) EXPORT_FUNC(PyFrame_GetLineNumber) EXPORT_FUNC(PyFrozenSet_New) EXPORT_FUNC(PyGC_Collect) +EXPORT_FUNC(PyGC_Disable) +EXPORT_FUNC(PyGC_Enable) +EXPORT_FUNC(PyGC_IsEnabled) EXPORT_FUNC(PyGILState_Ensure) EXPORT_FUNC(PyGILState_GetThisThreadState) EXPORT_FUNC(PyGILState_Release) From 958ac66e5e46b37a6daaa3b46214ab6e906e1588 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 29 Apr 2021 15:25:50 +0200 Subject: [PATCH 2/2] Update Misc/stable_abi.txt Co-authored-by: scoder --- Misc/stable_abi.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Misc/stable_abi.txt b/Misc/stable_abi.txt index c5e75eab666fed..2a802bd5f4b831 100644 --- a/Misc/stable_abi.txt +++ b/Misc/stable_abi.txt @@ -2139,8 +2139,7 @@ const Py_am_send added 3.10 -# (Detailed comments aren't really needed for further entries: from here on -# we can use version control logs.) +# New GC control functions in Py3.10 (https://bugs.python.org/issue28254) function PyGC_Disable added 3.10 @@ -2148,3 +2147,7 @@ function PyGC_Enable added 3.10 function PyGC_IsEnabled added 3.10 + + +# (Detailed comments aren't really needed for further entries: from here on +# we can use version control logs.)