diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-04 03:15:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-04 03:15:09 +0200 |
commit | 0fd2c300c2a85b3b227a907b2a39ef79fa86d850 (patch) | |
tree | ffe391ade17e6d581878f22016b065f7306f3fca /Modules/_threadmodule.c | |
parent | 9535aff9421f0a5639f6e4c4bb0f07a743ea8dba (diff) | |
download | cpython-git-0fd2c300c2a85b3b227a907b2a39ef79fa86d850.tar.gz |
Revert "bpo-36818: Add PyInterpreterState.runtime field. (gh-13129)" (GH-13795)
This reverts commit 396e0a8d9dc65453cb9d53500d0a620602656cfe.
Diffstat (limited to 'Modules/_threadmodule.c')
-rw-r--r-- | Modules/_threadmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c index 099afd86d0..d5e40ef999 100644 --- a/Modules/_threadmodule.c +++ b/Modules/_threadmodule.c @@ -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); |