cpython/Parser
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 Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
acceler.c SF patch #578297: 2002-08-04 06:28:21 +00:00
bitset.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
firstsets.c Silence parser generator output. 2001-09-11 16:43:16 +00:00
grammar.c The parser doesn't need its own implementation of assert, and having its 2001-12-04 03:18:48 +00:00
grammar.mak Link with the right C library! This has always been wrong (& my fault). 2002-05-23 19:25:59 +00:00
grammar1.c PyGrammar_LabelRepr(): sprintf -> PyOS_snprintf. 2001-12-04 03:36:01 +00:00
intrcheck.c Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:05:12 +00:00
listnode.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
metagrammar.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
myreadline.c Fix bug 439992 - [win32] KeyboardInterrupt Not Caught. 2002-07-14 23:12:29 +00:00
node.c SF patch #578297: 2002-08-04 06:28:21 +00:00
parser.c Disable the parser hacks that allowed the "yield" keyword to be enabled 2002-03-22 23:38:11 +00:00
parser.h Disable the parser hacks that enabled the "yield" keyword using a future 2002-03-22 23:53:36 +00:00
parsetok.c SF patch #578297: 2002-08-04 06:28:21 +00:00
pgen.c Py_IgnoreEnvironmentFlag should be extern, since it is declared in pythonrun.c 2002-05-31 13:11:40 +00:00
pgen.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
pgenmain.c The Py_REF_DEBUG/COUNT_ALLOCS/Py_TRACE_REFS macro minefield: added 2002-07-09 02:57:01 +00:00
printgrammar.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
tokenizer.c Mass checkin of universal newline support. 2002-04-14 20:12:41 +00:00
tokenizer.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00