mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Revert "bpo-36818: Add PyInterpreterState.runtime field. (gh-13129)" (GH-13795)
This reverts commit 396e0a8d9d.
This commit is contained in:
parent
9535aff942
commit
0fd2c300c2
11 changed files with 103 additions and 99 deletions
|
|
@ -996,7 +996,7 @@ t_bootstrap(void *boot_raw)
|
|||
|
||||
tstate = boot->tstate;
|
||||
tstate->thread_id = PyThread_get_thread_ident();
|
||||
_PyThreadState_Init(tstate);
|
||||
_PyThreadState_Init(&_PyRuntime, tstate);
|
||||
PyEval_AcquireThread(tstate);
|
||||
tstate->interp->num_threads++;
|
||||
res = PyObject_Call(boot->func, boot->args, boot->keyw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue