Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
95d75194
Commit
95d75194
authored
Jun 16, 2014
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove extra call to tstate_delete_common (merge artifact)
parent
9db28166
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
Python/pystate.c
Python/pystate.c
+2
-3
No files found.
Python/pystate.c
View file @
95d75194
...
...
@@ -423,6 +423,8 @@ PyThreadState_DeleteCurrent()
Py_FatalError
(
"PyThreadState_DeleteCurrent: no current tstate"
);
_Py_atomic_store_relaxed
(
&
_PyThreadState_Current
,
NULL
);
if
(
autoInterpreterState
&&
PyThread_get_key_value
(
autoTLSkey
)
==
tstate
)
PyThread_delete_key_value
(
autoTLSkey
);
/*
Only call tstate_delete_common to have the tstate if we're not finalizing
or we're the main thread. The main thread will do this for us. Not calling
...
...
@@ -431,9 +433,6 @@ PyThreadState_DeleteCurrent()
*/
if
(
!
_Py_Finalizing
||
_Py_Finalizing
==
tstate
)
tstate_delete_common
(
tstate
);
if
(
autoInterpreterState
&&
PyThread_get_key_value
(
autoTLSkey
)
==
tstate
)
PyThread_delete_key_value
(
autoTLSkey
);
tstate_delete_common
(
tstate
);
PyEval_ReleaseLock
();
}
#endif
/* WITH_THREAD */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment