<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cpython.git/Python/thread.c, branch v2.6.5rc2</title>
<subtitle>https://github.com/python/cpython.git</subtitle>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/'/>
<entry>
<title>Adds a sanity check to avoid a *very rare* infinite loop due to a corrupt tls</title>
<updated>2008-08-04T07:33:37Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2008-08-04T07:33:37Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=d868be8805b7f5c4f0356eb01f6d8feab43cc9b3'/>
<id>d868be8805b7f5c4f0356eb01f6d8feab43cc9b3</id>
<content type='text'>
key list data structure in the thread startup path.

This change is a companion to r60148 which already successfully dealt with a
similar issue on thread shutdown.

In particular this loop has been observed happening from this call path:
 #0  in find_key ()
 #1  in PyThread_set_key_value ()
 #2  in _PyGILState_NoteThreadState ()
 #3  in PyThreadState_New ()
 #4  in t_bootstrap ()
 #5  in pthread_start_thread ()

I don't know how this happens but it does, *very* rarely.  On more than
one hardware platform.  I have not been able to reproduce it manually.
(A flaky mutex implementation on the system in question is one hypothesis).

As with r60148, the spinning we managed to observe in the wild was due to a
single list element pointing back upon itself.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
key list data structure in the thread startup path.

This change is a companion to r60148 which already successfully dealt with a
similar issue on thread shutdown.

In particular this loop has been observed happening from this call path:
 #0  in find_key ()
 #1  in PyThread_set_key_value ()
 #2  in _PyGILState_NoteThreadState ()
 #3  in PyThreadState_New ()
 #4  in t_bootstrap ()
 #5  in pthread_start_thread ()

I don't know how this happens but it does, *very* rarely.  On more than
one hardware platform.  I have not been able to reproduce it manually.
(A flaky mutex implementation on the system in question is one hypothesis).

As with r60148, the spinning we managed to observe in the wild was due to a
single list element pointing back upon itself.
</pre>
</div>
</content>
</entry>
<entry>
<title>#1683 prevent forking from interfering in threading storage</title>
<updated>2008-06-13T00:09:47Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2008-06-13T00:09:47Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=114f7e5ffff86daef0a9e9802317e7b259c447f9'/>
<id>114f7e5ffff86daef0a9e9802317e7b259c447f9</id>
<content type='text'>
This should prevent some test_multiprocessing failures
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should prevent some test_multiprocessing failures
</pre>
</div>
</content>
</entry>
<entry>
<title>patch #1668: clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.</title>
<updated>2008-01-07T17:25:53Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2008-01-07T17:25:53Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=aed6c66aa8c9d1d2af9e60323e688452dfd6b6c7'/>
<id>aed6c66aa8c9d1d2af9e60323e688452dfd6b6c7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle more memory allocation failures without crashing.</title>
<updated>2006-07-21T07:59:47Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-07-21T07:59:47Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=d12bd012a6a4729b5a77c1019ca9da4e9d1b7e3e'/>
<id>d12bd012a6a4729b5a77c1019ca9da4e9d1b7e3e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Patch #1454481:  Make thread stack size runtime tunable.</title>
<updated>2006-06-13T15:04:24Z</updated>
<author>
<name>Andrew MacIntyre</name>
<email>andymac@bullseye.apana.org.au</email>
</author>
<published>2006-06-13T15:04:24Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=9291332de137141057591386b4ba449ae3a5ed48'/>
<id>9291332de137141057591386b4ba449ae3a5ed48</id>
<content type='text'>
Heavily revised, comprising revisions:
46640 - original trunk revision (backed out in r46655)
46647 - markup fix (backed out in r46655)
46692:46918 merged from branch aimacintyre-sf1454481

branch tested on buildbots (Windows buildbots had problems
not related to these changes).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Heavily revised, comprising revisions:
46640 - original trunk revision (backed out in r46655)
46647 - markup fix (backed out in r46655)
46692:46918 merged from branch aimacintyre-sf1454481

branch tested on buildbots (Windows buildbots had problems
not related to these changes).
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert revisions:</title>
<updated>2006-06-04T23:52:47Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-06-04T23:52:47Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=28eeefe566d77cd3af3d675c4f2216c5033fe538'/>
<id>28eeefe566d77cd3af3d675c4f2216c5033fe538</id>
<content type='text'>
46640 Patch #1454481:  Make thread stack size runtime tunable.
46647 Markup fix

The first is causing many buildbots to fail test runs, and there
are multiple causes with seemingly no immediate prospects for
repairing them.  See python-dev discussion.

Note that a branch can (and should) be created for resolving these
problems, like

svn copy svn+ssh://svn.python.org/python/trunk -r46640 svn+ssh://svn.python.org/python/branches/NEW_BRANCH

followed by merging rev 46647 to the new branch.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
46640 Patch #1454481:  Make thread stack size runtime tunable.
46647 Markup fix

The first is causing many buildbots to fail test runs, and there
are multiple causes with seemingly no immediate prospects for
repairing them.  See python-dev discussion.

Note that a branch can (and should) be created for resolving these
problems, like

svn copy svn+ssh://svn.python.org/python/trunk -r46640 svn+ssh://svn.python.org/python/branches/NEW_BRANCH

followed by merging rev 46647 to the new branch.
</pre>
</div>
</content>
</entry>
<entry>
<title>clean up function declarations to conform to PEP-7 style.</title>
<updated>2006-06-04T12:59:59Z</updated>
<author>
<name>Andrew MacIntyre</name>
<email>andymac@bullseye.apana.org.au</email>
</author>
<published>2006-06-04T12:59:59Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=63f0db682e00d051466e5d739ba85f2a30279eef'/>
<id>63f0db682e00d051466e5d739ba85f2a30279eef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Patch #1454481:  Make thread stack size runtime tunable.</title>
<updated>2006-06-04T12:31:09Z</updated>
<author>
<name>Andrew MacIntyre</name>
<email>andymac@bullseye.apana.org.au</email>
</author>
<published>2006-06-04T12:31:09Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=6539d2d3c758b507f10779e218d52d6c9f355025'/>
<id>6539d2d3c758b507f10779e218d52d6c9f355025</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>- Changes donated by Elemental Security to make it work on HP-UX 11 on</title>
<updated>2005-09-14T17:49:54Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2005-09-14T17:49:54Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=539c662f10b41d15f658cabfa03cc02902862adc'/>
<id>539c662f10b41d15f658cabfa03cc02902862adc</id>
<content type='text'>
  Itanium2 with HP's 64-bit compiler (SF patch #1225212).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Itanium2 with HP's 64-bit compiler (SF patch #1225212).
</pre>
</div>
</content>
</entry>
<entry>
<title>find_key():  This routine wasn't thread-correct, and accounts for the</title>
<updated>2004-10-10T01:58:44Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-10-10T01:58:44Z</published>
<link rel='alternate' type='text/html' href='http://service.techsat.com/oss-git/cpython.git/commit/?id=263091e38835bb96d06928ea56e4db73c1d2b7c1'/>
<id>263091e38835bb96d06928ea56e4db73c1d2b7c1</id>
<content type='text'>
release-build failures noted in bug 1041645.

This is a critical bugfix.  I'm not going to backport it, though (no time).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
release-build failures noted in bug 1041645.

This is a critical bugfix.  I'm not going to backport it, though (no time).
</pre>
</div>
</content>
</entry>
</feed>
