0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00
cpython/Python
Andrew MacIntyre 80d4e2acf5 SF patch #578297:
Change the parser and compiler to use PyMalloc.

Only the files implementing processes that will request memory
allocations small enough for PyMalloc to be a win have been
changed, which are:-
 - Python/compile.c
 - Parser/acceler.c
 - Parser/node.c
 - Parser/parsetok.c

This augments the aggressive overallocation strategy implemented by
Tim Peters in PyNode_AddChild() [Parser/node.c], in reducing the
impact of platform malloc()/realloc()/free() corner case behaviour.
Such corner cases are known to be triggered by test_longexp and
test_import.

Jeremy Hylton, in accepting this patch, recommended this as a
bugfix candidate for 2.2.  While the changes to Python/compile.c
and Parser/node.c backport easily (and could go in), the changes
to Parser/acceler.c and Parser/parsetok.c require other not
insignificant changes as a result of the differences in the memory
APIs between 2.3 and 2.2, which I'm not in a position to work
through at the moment.  This is a pity, as the Parser/parsetok.c
changes are the most important after the Parser/node.c changes, due
to the size of the memory requests involved and their frequency.
2002-08-04 06:28:21 +00:00
..
.cvsignore
atof.c
bltinmodule.c
ceval.c SF patch 552161 - Py_AddPendingCall doesn't unlock on fail (Daniel 2002-07-17 16:57:13 +00:00
codecs.c Fix bug [ 549731 ] Unicode encoders appears to leak references. 2002-07-18 23:06:17 +00:00
compile.c SF patch #578297: 2002-08-04 06:28:21 +00:00
dup2.c
dynload_aix.c
dynload_atheos.c
dynload_beos.c
dynload_dl.c
dynload_hpux.c
dynload_mac.c
dynload_next.c
dynload_os2.c
dynload_shlib.c
dynload_stub.c
dynload_win.c
errors.c New functions for extension writers on Windows: 2002-07-29 14:27:41 +00:00
exceptions.c Excise DL_IMPORT/EXPORT from object.h, and related files. This patch 2002-07-29 13:42:14 +00:00
fmod.c
frozen.c
frozenmain.c
future.c
getargs.c Patch #554716: Use __va_copy where available. 2002-07-28 10:23:27 +00:00
getcompiler.c
getcopyright.c
getcwd.c
getmtime.c
getopt.c
getplatform.c
getversion.c
graminit.c
hypot.c
import.c
importdl.c
importdl.h
mactoolboxglue.c Added one call to Py_Main(), for OSX framework builds only, that will get the 2002-08-02 14:11:24 +00:00
marshal.c Whitespace normalization. 2002-07-30 11:44:44 +00:00
memmove.c
modsupport.c Patch #554716: Use __va_copy where available. 2002-07-28 10:23:27 +00:00
mysnprintf.c
mystrtoul.c
pyfpe.c
pystate.c
pythonrun.c _Py_AskYesNo(): Removed this function. It was defined only in a 2002-07-09 18:22:55 +00:00
sigcheck.c
strdup.c
strerror.c
strtod.c
structmember.c
symtable.c
sysmodule.c Rearranged and added comments to object.h, to clarify many things 2002-07-07 19:59:50 +00:00
thread_atheos.h
thread_beos.h
thread_cthread.h
thread_foobar.h
thread_lwp.h
thread_nt.h
thread_os2.h
thread_pth.h
thread_pthread.h
thread_sgi.h
thread_solaris.h
thread_wince.h
thread.c Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT. 2002-07-19 06:55:41 +00:00
traceback.c