mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
bpo-43760: Speed up check for tracing in interpreter dispatch (#25276)
* Remove redundant tracing_possible field from interpreter state. * Move 'use_tracing' from tstate onto C stack, for fastest possible checking in dispatch logic. * Add comments stressing the importance stack discipline when dealing with CFrames. * Add NEWS
This commit is contained in:
parent
c2b7a66b91
commit
9e7b2076fb
6 changed files with 61 additions and 35 deletions
|
@ -624,7 +624,8 @@ new_threadstate(PyInterpreterState *interp, int init)
|
|||
tstate->recursion_headroom = 0;
|
||||
tstate->stackcheck_counter = 0;
|
||||
tstate->tracing = 0;
|
||||
tstate->use_tracing = 0;
|
||||
tstate->root_cframe.use_tracing = 0;
|
||||
tstate->cframe = &tstate->root_cframe;
|
||||
tstate->gilstate_counter = 0;
|
||||
tstate->async_exc = NULL;
|
||||
tstate->thread_id = PyThread_get_thread_ident();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue