summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2005-01-08 02:43:53 (GMT)
committerBrett Cannon <bcannon@gmail.com>2005-01-08 02:43:53 (GMT)
commite6539c4401cd3f60a5cc176717852886cb9d152a (patch)
tree6bc7274b8d6297d3bfe8cd78ca12977a737133a3 /Misc
parent922b3e2098d9903d915aa7ce19d8e3c8973643d0 (diff)
downloadcpython-e6539c4401cd3f60a5cc176717852886cb9d152a.zip
cpython-e6539c4401cd3f60a5cc176717852886cb9d152a.tar.gz
cpython-e6539c4401cd3f60a5cc176717852886cb9d152a.tar.bz2
In _DummyThread objects the lock stored in __block (allocated thanks to
_Thread.__init__) was never used. This is a waste since locks use OS primitives that are in limited supply. So the lock is deleted in _DummyThread.__init__ . Closes bug #1089632.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index d7b35d5..8d00f22 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -33,6 +33,11 @@ Extension Modules
Library
-------
+- _DummyThread objects in the threading module now delete self.__block that is
+ inherited from _Thread since it uses up a lock allocated by 'thread'. The
+ lock primitives tend to be limited in number and thus should not be wasted on
+ a _DummyThread object. Fixes bug #1089632.
+
- The imghdr module now detects Exif files.
- StringIO.truncate() now correctly adjusts the size attribute.