Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 64d8547dbc3dc1705cf216731e8ba5edd31d70b5 authored by Anthony Baxter on 23 December 2001, 04:07:25 UTC, committed by Anthony Baxter on 23 December 2001, 04:07:25 UTC
Improve threading on Solaris, according to SF patch #460269, submitted by bbrox@bbrox.org / lionel.ulmer@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. This is a semi-feature, but makes such a huge difference to the performance of Zope on Solaris that it's worthwhile (well, imho).
1 parent cdf6bfe
Tip revision: 64d8547dbc3dc1705cf216731e8ba5edd31d70b5 authored by Anthony Baxter on 23 December 2001, 04:07:25 UTC
backport of solaris thread patch, adding PTHREAD_SCOPE_SYSTEM support:
backport of solaris thread patch, adding PTHREAD_SCOPE_SYSTEM support:
Tip revision: 64d8547
File | Mode | Size |
---|---|---|
.cvsignore | -rw-r--r-- | 22 bytes |
acceler.c | -rw-r--r-- | 3.2 KB |
assert.h | -rw-r--r-- | 405 bytes |
bitset.c | -rw-r--r-- | 949 bytes |
firstsets.c | -rw-r--r-- | 2.1 KB |
grammar.c | -rw-r--r-- | 4.6 KB |
grammar1.c | -rw-r--r-- | 1001 bytes |
intrcheck.c | -rw-r--r-- | 2.9 KB |
listnode.c | -rw-r--r-- | 983 bytes |
metagrammar.c | -rw-r--r-- | 2.1 KB |
myreadline.c | -rw-r--r-- | 2.9 KB |
node.c | -rw-r--r-- | 1.3 KB |
parser.c | -rw-r--r-- | 7.8 KB |
parser.h | -rw-r--r-- | 916 bytes |
parsetok.c | -rw-r--r-- | 3.2 KB |
pgen.c | -rw-r--r-- | 14.2 KB |
pgen.h | -rw-r--r-- | 253 bytes |
pgenmain.c | -rw-r--r-- | 3.5 KB |
printgrammar.c | -rw-r--r-- | 2.4 KB |
tokenizer.c | -rw-r--r-- | 17.4 KB |
tokenizer.h | -rw-r--r-- | 1.8 KB |
Computing file changes ...