File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -286,8 +286,8 @@ struct internals {
286286 internals ()
287287 : static_property_type(make_static_property_type()),
288288 default_metaclass (make_default_metaclass()) {
289+ tstate.set (nullptr ); // See PR #5870
289290 PyThreadState *cur_tstate = PyThreadState_Get ();
290- tstate = cur_tstate;
291291
292292 istate = cur_tstate->interp ;
293293 registered_exception_translators.push_front (&translate_exception);
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ inline subinterpreter_scoped_activate::subinterpreter_scoped_activate(subinterpr
271271 // make the interpreter active and acquire the GIL
272272 old_tstate_ = PyThreadState_Swap (tstate_);
273273
274- // save this in internals for scoped_gil calls
274+ // save this in internals for scoped_gil calls (see also: PR #5870)
275275 detail::get_internals ().tstate = tstate_;
276276}
277277
You can’t perform that action at this time.
0 commit comments