[Python-checkins] r83923 - in python/branches/release27-maint: Misc/ACKS Misc/NEWS Modules/posixmodule.c
antoine.pitrou
python-checkins at python.org
Tue Aug 10 02:04:13 CEST 2010
Author: antoine.pitrou
Date: Tue Aug 10 02:04:13 2010
New Revision: 83923
Log:
Merged revisions 83921 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83921 | antoine.pitrou | 2010-08-10 01:39:31 +0200 (mar., 10 août 2010) | 4 lines
Issue #6915: Under Windows, os.listdir() didn't release the Global
Interpreter Lock around all system calls. Original patch by Ryan Kelly.
........
Modified:
python/branches/release27-maint/ (props changed)
python/branches/release27-maint/Misc/ACKS
python/branches/release27-maint/Misc/NEWS
python/branches/release27-maint/Modules/posixmodule.c
Modified: python/branches/release27-maint/Misc/ACKS
==============================================================================
--- python/branches/release27-maint/Misc/ACKS (original)
+++ python/branches/release27-maint/Misc/ACKS Tue Aug 10 02:04:13 2010
@@ -409,6 +409,7 @@
Lou Kates
Hiroaki Kawai
Sebastien Keim
+Ryan Kelly
Robert Kern
Randall Kern
Magnus Kessler
Modified: python/branches/release27-maint/Misc/NEWS
==============================================================================
--- python/branches/release27-maint/Misc/NEWS (original)
+++ python/branches/release27-maint/Misc/NEWS Tue Aug 10 02:04:13 2010
@@ -29,6 +29,9 @@
Library
-------
+- Issue #6915: Under Windows, os.listdir() didn't release the Global
+ Interpreter Lock around all system calls. Original patch by Ryan Kelly.
+
- Issue #3757: thread-local objects now support cyclic garbage collection.
Thread-local objects involved in reference cycles will be deallocated
timely by the cyclic GC, even if the underlying thread is still running.
Modified: python/branches/release27-maint/Modules/posixmodule.c
==============================================================================
--- python/branches/release27-maint/Modules/posixmodule.c (original)
+++ python/branches/release27-maint/Modules/posixmodule.c Tue Aug 10 02:04:13 2010
@@ -2127,7 +2127,9 @@
free(wnamebuf);
return NULL;
}
+ Py_BEGIN_ALLOW_THREADS
hFindFile = FindFirstFileW(wnamebuf, &wFileData);
+ Py_END_ALLOW_THREADS
if (hFindFile == INVALID_HANDLE_VALUE) {
int error = GetLastError();
if (error == ERROR_FILE_NOT_FOUND) {
@@ -2197,7 +2199,9 @@
if ((d = PyList_New(0)) == NULL)
return NULL;
+ Py_BEGIN_ALLOW_THREADS
hFindFile = FindFirstFile(namebuf, &FileData);
+ Py_END_ALLOW_THREADS
if (hFindFile == INVALID_HANDLE_VALUE) {
int error = GetLastError();
if (error == ERROR_FILE_NOT_FOUND)
More information about the Python-checkins
mailing list