how do I get solaris thread fixes from 2.2b1 into 2.1?

Tim Peters tim.one at home.com
Sun Oct 28 12:31:01 EST 2001


[Tony McDonald]
> Can anyone tell me what I need to do to get the Solaris thread fixes
> that are in python 2.2b1 into a copy of python 2.1 I have?

Study the CVS log for Python/thread_pthread.h (paste this URL together):

http://cvs.sf.net/cgi-bin/viewcvs.cgi/python/python/
    dist/src/Python/thread_pthread.h

Take your best guess as to what's relevant, and try to rebuild a Python with
just that much changed.  This is playing with fire, but most people seem to
prefer that to hiring a firefighter to do it for them <wink>.

My guess is that rev 2.32 is your best shot:

----------------------------
revision 2.32
date: 2001/09/10 14:10:54;  author: gvanrossum;  state: Exp;  lines: +8 -3
Improve threading on Solaris, according to SF patch #460269, submitted
by bbrox at bbrox.org / lionel.ulmer at free.fr.

This adds a configure check and if all goes well turns on the
PTHREAD_SCOPE_SYSTEM thread attribute for new threads.

This should remove the need to add tiny sleeps at the start of threads
to allow other threads to be scheduled.
----------------------------

As Guido's comment implies, we don't actually know that the patch
accomplishes anything, but patch 460269 said it did (which also see; the
theory sounds right to me).





More information about the Python-list mailing list