aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorYury Selivanov <yury@edgedb.com>2025-01-22 08:25:29 -0800
committerGitHub <noreply@github.com>2025-01-22 17:25:29 +0100
commit188598851d5cf475fa57b4ec21c0e88ce9316ff0 (patch)
treecd8face9dc12d1d001503aa2e502d06ac391295d /Python/pylifecycle.c
parent60a3a0dd6fe140fdc87f6e769ee5bb17d92efe4e (diff)
downloadcpython-188598851d5cf475fa57b4ec21c0e88ce9316ff0.tar.gz
cpython-188598851d5cf475fa57b4ec21c0e88ce9316ff0.zip
GH-91048: Add utils for capturing async call stack for asyncio programs and enable profiling (#124640)
Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org> Co-authored-by: Ɓukasz Langa <lukasz@langa.pl> Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com> Co-authored-by: Jacob Coffee <jacob@z7x.org> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index ea8a291a8e5..f6526725d5d 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -111,23 +111,7 @@ static void call_ll_exitfuncs(_PyRuntimeState *runtime);
_Py_COMP_DIAG_PUSH
_Py_COMP_DIAG_IGNORE_DEPR_DECLS
-#if defined(MS_WINDOWS)
-
-#pragma section("PyRuntime", read, write)
-__declspec(allocate("PyRuntime"))
-
-#elif defined(__APPLE__)
-
-__attribute__((
- section(SEG_DATA ",PyRuntime")
-))
-
-#endif
-
-_PyRuntimeState _PyRuntime
-#if defined(__linux__) && (defined(__GNUC__) || defined(__clang__))
-__attribute__ ((section (".PyRuntime")))
-#endif
+GENERATE_DEBUG_SECTION(PyRuntime, _PyRuntimeState _PyRuntime)
= _PyRuntimeState_INIT(_PyRuntime, _Py_Debug_Cookie);
_Py_COMP_DIAG_POP