summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-18 16:40:43 (GMT)
committerGitHub <noreply@github.com>2021-10-18 16:40:43 (GMT)
commit034f607906de6e375cc9a98cc3b09f6d56f8be10 (patch)
tree3b8e4b75e0af14d6e14079ce9d5388783a40c012 /Python/ceval.c
parent70945d57e775b335eb58b734d82e68484063e835 (diff)
downloadcpython-034f607906de6e375cc9a98cc3b09f6d56f8be10.zip
cpython-034f607906de6e375cc9a98cc3b09f6d56f8be10.tar.gz
cpython-034f607906de6e375cc9a98cc3b09f6d56f8be10.tar.bz2
bpo-43760: Rename _PyThreadState_DisableTracing() (GH-29032)
* Rename _PyThreadState_DisableTracing() to _PyThreadState_PauseTracing() * Rename _PyThreadState_ResetTracing() to _PyThreadState_ResumeTracing()
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 60fdf01..05bdcc5 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -6165,7 +6165,7 @@ call_trace(Py_tracefunc func, PyObject *obj,
if (tstate->tracing)
return 0;
tstate->tracing++;
- _PyThreadState_DisableTracing(tstate);
+ _PyThreadState_PauseTracing(tstate);
PyFrameObject *f = _PyFrame_GetFrameObject(frame);
if (f == NULL) {
return -1;
@@ -6179,7 +6179,7 @@ call_trace(Py_tracefunc func, PyObject *obj,
}
result = func(obj, f, what, arg);
f->f_lineno = 0;
- _PyThreadState_ResetTracing(tstate);
+ _PyThreadState_ResumeTracing(tstate);
tstate->tracing--;
return result;
}
@@ -6193,7 +6193,7 @@ _PyEval_CallTracing(PyObject *func, PyObject *args)
PyObject *result;
tstate->tracing = 0;
- _PyThreadState_ResetTracing(tstate);
+ _PyThreadState_ResumeTracing(tstate);
result = PyObject_Call(func, args, NULL);
tstate->tracing = save_tracing;
tstate->cframe->use_tracing = save_use_tracing;
@@ -6250,7 +6250,7 @@ _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg)
tstate->c_profilefunc = NULL;
tstate->c_profileobj = NULL;
/* Must make sure that tracing is not ignored if 'profileobj' is freed */
- _PyThreadState_ResetTracing(tstate);
+ _PyThreadState_ResumeTracing(tstate);
Py_XDECREF(profileobj);
Py_XINCREF(arg);
@@ -6258,7 +6258,7 @@ _PyEval_SetProfile(PyThreadState *tstate, Py_tracefunc func, PyObject *arg)
tstate->c_profilefunc = func;
/* Flag that tracing or profiling is turned on */
- _PyThreadState_ResetTracing(tstate);
+ _PyThreadState_ResumeTracing(tstate);
return 0;
}
@@ -6291,7 +6291,7 @@ _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg)
tstate->c_tracefunc = NULL;
tstate->c_traceobj = NULL;
/* Must make sure that profiling is not ignored if 'traceobj' is freed */
- _PyThreadState_ResetTracing(tstate);
+ _PyThreadState_ResumeTracing(tstate);
Py_XDECREF(traceobj);
Py_XINCREF(arg);
@@ -6299,7 +6299,7 @@ _PyEval_SetTrace(PyThreadState *tstate, Py_tracefunc func, PyObject *arg)
tstate->c_tracefunc = func;
/* Flag that tracing or profiling is turned on */
- _PyThreadState_ResetTracing(tstate);
+ _PyThreadState_ResumeTracing(tstate);
return 0;
}