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
77626d7e
Commit
77626d7e
authored
Apr 19, 2015
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #23998: PyImport_ReInitLock() now checks for lock allocation error
parent
7dc18a70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
Misc/NEWS
Misc/NEWS
+5
-0
Python/import.c
Python/import.c
+5
-1
No files found.
Misc/NEWS
View file @
77626d7e
...
...
@@ -32,6 +32,11 @@ Library
- Issue #23365: Fixed possible integer overflow in
itertools.combinations_with_replacement.
C API
-----
- Issue #23998: PyImport_ReInitLock() now checks for lock allocation error
What'
s
New
in
Python
3.3.6
?
===========================
...
...
Python/import.c
View file @
77626d7e
...
...
@@ -199,8 +199,12 @@ _PyImport_ReleaseLock(void)
void
_PyImport_ReInitLock
(
void
)
{
if
(
import_lock
!=
NULL
)
if
(
import_lock
!=
NULL
)
{
import_lock
=
PyThread_allocate_lock
();
if
(
import_lock
==
NULL
)
{
Py_FatalError
(
"PyImport_ReInitLock failed to create a new lock"
);
}
}
if
(
import_lock_level
>
1
)
{
/* Forked as a side effect of import */
long
me
=
PyThread_get_thread_ident
();
...
...
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