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
6cb9029a
Commit
6cb9029a
authored
Apr 22, 2003
by
Mark Hammond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PyGILState cleanup was too early - destructors called via module cleanup may use the API.
parent
ecd2fdca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Python/pythonrun.c
Python/pythonrun.c
+5
-5
No files found.
Python/pythonrun.c
View file @
6cb9029a
...
...
@@ -254,11 +254,6 @@ Py_Finalize(void)
call_sys_exitfunc
();
initialized
=
0
;
/* Cleanup auto-thread-state */
#ifdef WITH_THREAD
_PyGILState_Fini
();
#endif
/* WITH_THREAD */
/* Get current thread state and interpreter pointer */
tstate
=
PyThreadState_Get
();
interp
=
tstate
->
interp
;
...
...
@@ -310,6 +305,11 @@ Py_Finalize(void)
*/
_PyExc_Fini
();
/* Cleanup auto-thread-state */
#ifdef WITH_THREAD
_PyGILState_Fini
();
#endif
/* WITH_THREAD */
/* Clear interpreter state */
PyInterpreterState_Clear
(
interp
);
...
...
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