summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-03-15 17:06:21 (GMT)
committerGitHub <noreply@github.com>2022-03-15 17:06:21 (GMT)
commit099f75614100e88ed90b68d20a51a8d9c22f81a7 (patch)
treeb65ff46978b50db65b5420bcdc1330048d592804 /Include
parenta8c728b8b742fd8ca5a225f79d99014794b8fdf3 (diff)
downloadcpython-099f75614100e88ed90b68d20a51a8d9c22f81a7.zip
cpython-099f75614100e88ed90b68d20a51a8d9c22f81a7.tar.gz
cpython-099f75614100e88ed90b68d20a51a8d9c22f81a7.tar.bz2
bpo-45923: Decouple suspension of tracing from tracing flag. (GH-31908)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_pystate.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/Include/internal/pycore_pystate.h b/Include/internal/pycore_pystate.h
index f0c238a..c4bc53c 100644
--- a/Include/internal/pycore_pystate.h
+++ b/Include/internal/pycore_pystate.h
@@ -139,14 +139,9 @@ PyAPI_FUNC(void) _PyThreadState_DeleteExcept(
_PyRuntimeState *runtime,
PyThreadState *tstate);
-static inline void
-_PyThreadState_PauseTracing(PyThreadState *tstate)
-{
- tstate->cframe->use_tracing = 0;
-}
static inline void
-_PyThreadState_ResumeTracing(PyThreadState *tstate)
+_PyThreadState_UpdateTracingState(PyThreadState *tstate)
{
int use_tracing = (tstate->c_tracefunc != NULL
|| tstate->c_profilefunc != NULL);