cpython/Python
Benjamin Peterson 5183856c17 Merged revisions 75246 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r75246 | benjamin.peterson | 2009-10-04 15:32:25 -0500 (Sun, 04 Oct 2009) | 29 lines

  Merged revisions 74841 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r74841 | thomas.wouters | 2009-09-16 14:55:54 -0500 (Wed, 16 Sep 2009) | 23 lines


    Fix issue #1590864, multiple threads and fork() can cause deadlocks, by
    acquiring the import lock around fork() calls. This prevents other threads
    from having that lock while the fork happens, and is the recommended way of
    dealing with such issues. There are two other locks we care about, the GIL
    and the Thread Local Storage lock. The GIL is obviously held when calling
    Python functions like os.fork(), and the TLS lock is explicitly reallocated
    instead, while also deleting now-orphaned TLS data.

    This only fixes calls to os.fork(), not extension modules or embedding
    programs calling C's fork() directly. Solving that requires a new set of API
    functions, and possibly a rewrite of the Python/thread_*.c mess. Add a
    warning explaining the problem to the documentation in the mean time.

    This also changes behaviour a little on AIX. Before, AIX (but only AIX) was
    getting the import lock reallocated, seemingly to avoid this very same
    problem. This is not the right approach, because the import lock is a
    re-entrant one, and reallocating would do the wrong thing when forking while
    holding the import lock.

    Will backport to 2.6, minus the tiny AIX behaviour change.
  ........
................
2009-10-04 20:35:30 +00:00
..
Python-ast.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00
_warnings.c Merged revisions 74046 via svnmerge from 2009-07-17 07:02:18 +00:00
asdl.c Merged revisions 64114 via svnmerge from 2008-06-18 00:47:36 +00:00
ast.c Merged revisions 75224 via svnmerge from 2009-10-03 20:28:47 +00:00
bltinmodule.c these builtins have to be initialized 2009-05-09 18:10:51 +00:00
ceval.c Merged revisions 73064 via svnmerge from 2009-05-30 21:41:10 +00:00
codecs.c Rename utf8b error handler to surrogateescape. 2009-05-10 08:15:24 +00:00
compile.c unfortunately we can't kill compiler_new_tmpname here 2009-06-28 22:36:18 +00:00
dtoa.c Refactor to remove duplicated nan/inf parsing code in 2009-05-20 22:05:25 +00:00
dup2.c Mass ANSIfication of function definitions. Doesn't cover all 'extern' 2000-07-22 18:47:25 +00:00
dynload_aix.c Fix SF bug #1072182, problems with signed characters. 2005-12-19 06:05:18 +00:00
dynload_atheos.c Implement PEP 3121: new module initialization and finalization API. 2008-06-11 05:26:20 +00:00
dynload_dl.c Implement PEP 3121: new module initialization and finalization API. 2008-06-11 05:26:20 +00:00
dynload_hpux.c Implement PEP 3121: new module initialization and finalization API. 2008-06-11 05:26:20 +00:00
dynload_next.c Implement PEP 3121: new module initialization and finalization API. 2008-06-11 05:26:20 +00:00
dynload_os2.c Implement PEP 3121: new module initialization and finalization API. 2008-06-11 05:26:20 +00:00
dynload_shlib.c Implement PEP 3121: new module initialization and finalization API. 2008-06-11 05:26:20 +00:00
dynload_stub.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
dynload_win.c Merged revisions 69038 via svnmerge from 2009-01-27 23:46:57 +00:00
errors.c Merged revisions 72698-72699 via svnmerge from 2009-05-17 04:21:53 +00:00
formatter_unicode.c Issue #1588: Add complex.__format__. 2009-04-30 01:00:33 +00:00
frozen.c Fix for refleak tests through regrtest.py -R:: bug #1414 2007-11-12 19:19:07 +00:00
frozenmain.c #4004: Missing newline in some startup error messages. 2008-10-07 21:06:18 +00:00
future.c The BDFL has retired! Long live the FLUFL (Friendly Language Uncle For Life)! 2009-04-01 05:08:41 +00:00
getargs.c Merged revisions 74278 via svnmerge from 2009-08-13 08:36:43 +00:00
getcompiler.c The GCC version is loooooooooong; put it on a new line. 2000-09-05 04:40:39 +00:00
getcopyright.c Merged revisions 68112,68115,68120,68133,68141-68142,68145-68146,68148-68149 via svnmerge from 2009-01-03 22:33:39 +00:00
getcwd.c Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 2006-05-27 19:21:47 +00:00
getopt.c Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62055-62058,62060-62066,62068-62074,62076-62079,62081-62083,62086-62089,62092-62094,62098,62101,62104,62106-62109,62115-62122,62124-62125,62128,62130,62132,62134-62135,62137,62139-62140,62144,62146,62151,62155,62157,62162-62166,62171-62172,62175-62176,62178,62181-62186,62188-62192,62196,62200-62203,62206,62211-62213,62215-62218,62222,62224-62226,62228,62232,62236,62240-62245,62248,62250-62254,62256-62258,62262,62264-62265,62267-62270,62272-62276,62280-62288,62291-62292,62299-62301,62307,62312,62316-62318,62322-62331,62333-62337,62339-62344,62346-62348 via svnmerge from 2008-04-15 06:43:13 +00:00
getplatform.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
getversion.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:42:20 +00:00
graminit.c Merged revisions 72924 via svnmerge from 2009-05-25 21:10:36 +00:00
import.c Merged revisions 75246 via svnmerge from 2009-10-04 20:35:30 +00:00
importdl.c Implement PEP 3121: new module initialization and finalization API. 2008-06-11 05:26:20 +00:00
importdl.h PEP 302 + zipimport: 2002-12-30 22:08:05 +00:00
makeopcodetargets.py Make Python/makeopcodetargets runnable with Python 2.3. With any luck, this 2009-01-31 12:12:41 +00:00
marshal.c Merged revisions 75145 via svnmerge from 2009-09-29 19:24:38 +00:00
modsupport.c Py_BuildValue's 'c' code should use byte strings #5666 2009-04-03 22:18:11 +00:00
mysnprintf.c Removed unused #include. 2009-04-07 22:55:31 +00:00
mystrtoul.c Merged revisions 61981,61984-61987,61992-61993,61997-62000 via svnmerge from 2008-03-28 10:53:29 +00:00
opcode_targets.h http://bugs.python.org/issue4715 2009-02-25 02:25:04 +00:00
peephole.c Merged revisions 74126,74130-74131,74149,74155,74157,74180-74183,74398 via svnmerge from 2009-08-13 09:34:05 +00:00
pyarena.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
pyctype.c Include files missed in r72044. 2009-04-27 20:54:42 +00:00
pyfpe.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
pymath.c The SSE2 detection and enabling could potentially cause 2009-04-18 20:17:52 +00:00
pystate.c Issue #3327: Don't overallocate in the modules_by_index list. 2008-11-17 16:22:11 +00:00
pystrcmp.c Merged revisions 61724-61725,61731-61735,61737,61739,61741,61743-61744,61753,61761,61765-61767,61769,61773,61776-61778,61780-61783,61788,61793,61796,61807,61813 via svnmerge from 2008-03-23 21:54:12 +00:00
pystrtod.c Refactor to remove duplicated nan/inf parsing code in 2009-05-20 22:05:25 +00:00
pythonrun.c bytes -> bytearray 2009-05-10 23:43:14 +00:00
sigcheck.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
strdup.c Mass ANSIfication of function definitions. Doesn't cover all 'extern' 2000-07-22 18:47:25 +00:00
structmember.c Rename PyUnicode_AsString -> _PyUnicode_AsString and 2008-08-07 18:54:33 +00:00
symtable.c fix error handling of PyNumber_InPlaceOr #6000 2009-05-12 20:39:25 +00:00
sysmodule.c Merged revisions 74062 via svnmerge from 2009-08-13 11:51:54 +00:00
thread.c Merged revisions 68455,68476,68542 via svnmerge from 2009-01-12 08:21:03 +00:00
thread_atheos.h Patch #488073: AtheOS port. 2002-06-11 06:22:31 +00:00
thread_cthread.h Remove the unused & broken PyThread_*_sema() functions and related constants. 2002-01-19 22:02:55 +00:00
thread_foobar.h Remove the unused & broken PyThread_*_sema() functions and related constants. 2002-01-19 22:02:55 +00:00
thread_lwp.h Remove the unused & broken PyThread_*_sema() functions and related constants. 2002-01-19 22:02:55 +00:00
thread_nt.h Merged revisions 68455,68476,68542 via svnmerge from 2009-01-12 08:21:03 +00:00
thread_os2.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
thread_pth.h Patch #805613: Fix usage of the PTH library. 2003-09-20 11:13:36 +00:00
thread_pthread.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
thread_sgi.h Remove support for DYNIX, IRIX 4, --with-sgi-dl, --with-dl-dld 2004-01-17 04:04:13 +00:00
thread_solaris.h Patch #716969: Detect thread creation failure. Will backport to 2.2. 2003-04-19 07:44:52 +00:00
thread_wince.h bug 1234979 addition 2005-07-09 15:26:33 +00:00
traceback.c Issue #1717: rename tp_compare to tp_reserved. I'll change the 2009-02-02 20:36:42 +00:00