<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Parser/node.c, branch 2.3</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Parser/node.c?h=2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Parser/node.c?h=2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2008-03-02T20:32:57Z</updated>
<entry>
<title>Backport of r61180:</title>
<updated>2008-03-02T20:32:57Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2008-03-02T20:32:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d254ca8813986ac72f39fdac90fdf8f63904c28e'/>
<id>urn:sha1:d254ca8813986ac72f39fdac90fdf8f63904c28e</id>
<content type='text'>
Added checks for integer overflows, contributed by Google. Some are
only available if asserts are left in the code, in cases where they
can't be triggered from Python code.
</content>
</entry>
<entry>
<title>SF patch #578297:</title>
<updated>2002-08-04T06:28:21Z</updated>
<author>
<name>Andrew MacIntyre</name>
<email>andymac@bullseye.apana.org.au</email>
</author>
<published>2002-08-04T06:28:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=80d4e2acf58433fb2e84ee55d183a7995dc44d0e'/>
<id>urn:sha1:80d4e2acf58433fb2e84ee55d183a7995dc44d0e</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>XXXROUNDUP():  Turns out this fixed Andrew MacIntyre's memory-mgmt</title>
<updated>2002-07-15T17:58:03Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-07-15T17:58:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e561dc231e31a304b69e66979fc9cc773b7668de'/>
<id>urn:sha1:e561dc231e31a304b69e66979fc9cc773b7668de</id>
<content type='text'>
disaster too, so this change is here to stay.  Beefed up the comments
and added some stats Andrew reported.  Also a small change to the
macro body, to make it obvious how XXXROUNDUP(0) ends up returning 0.
See SF patch 578297 for context.

Not a bugfix candidate, as the functional changes here have already
been backported to the 2.2 line (this patch just improves clarity).
</content>
</entry>
<entry>
<title>PyNode_AddChild() and fancy_roundup():  Be paranoid about int overflow.</title>
<updated>2002-07-08T19:11:07Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-07-08T19:11:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=623fdb9884bb1cf2f38036f0a5e81bccd6b78935'/>
<id>urn:sha1:623fdb9884bb1cf2f38036f0a5e81bccd6b78935</id>
<content type='text'>
</content>
</entry>
<entry>
<title>PyNode_AddChild():  Do aggressive over-allocation when the number of</title>
<updated>2002-07-08T06:32:09Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-07-08T06:32:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=755ebea23b8bac26661d3315ef68ccff61c55e6e'/>
<id>urn:sha1:755ebea23b8bac26661d3315ef68ccff61c55e6e</id>
<content type='text'>
children gets large, to avoid severe platform realloc() degeneration
in extreme cases (like test_longexp).

Bugfix candidate.

This was doing extremely timid over-allocation, just rounding up to the
nearest multiple of 3.  Now so long as the number of children is &lt;= 128,
it rounds up to a multiple of 4 but via a much faster method.  When the
number of children exceeds 128, though, and more space is needed, it
doubles the capacity.  This is aggressive over-allocation.

SF patch &lt;http://www.python.org/sf/578297&gt; has Andrew MacIntyre using
PyMalloc in the parser to overcome platform malloc problems in
test_longexp on OS/2 EMX.  Jack Jansen notes there that it didn't help
him on the Mac, because the Mac has problems with frequent ever-growing
reallocs, not just with gazillions of teensy mallocs.  Win98 has no
visible problems with test_longexp, but I tried boosting the test-case
size and soon got "senseless" MemoryErrors out of it, and soon after
crashed the OS:  as I've seen in many other contexts before, while the
Win98 realloc remains zippy in bad cases, it leads to extreme
fragmentation of user address space, to the point that the OS barfs.

I don't yet know whether this fixes Jack's Mac problems, but it does cure
Win98's problems when boosting the test case size.  It also speeds
test_longexp in its unaltered state.
</content>
</entry>
<entry>
<title>More limits.h stuff in node.c.</title>
<updated>2000-09-26T06:11:54Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2000-09-26T06:11:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1d6a7297d356d8daf84e3b29e029d2fc4d5f949f'/>
<id>urn:sha1:1d6a7297d356d8daf84e3b29e029d2fc4d5f949f</id>
<content type='text'>
Fred, check this!
</content>
</entry>
<entry>
<title>Move down the INT_MAX logic, because HAVE_LIMITS_H was always undefined</title>
<updated>2000-09-03T23:47:08Z</updated>
<author>
<name>Vladimir Marangozov</name>
<email>vladimir.marangozov@t-online.de</email>
</author>
<published>2000-09-03T23:47:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=58e64a82eeec12711a55349f86ced990989a360b'/>
<id>urn:sha1:58e64a82eeec12711a55349f86ced990989a360b</id>
<content type='text'>
and this breaks the AIX build with an INT_MAX redefinition error.
"config.h" is included in pgenheaders.h, so moving this down fixes the
problem.
</content>
</entry>
<entry>
<title>REMOVED all CWI, CNRI and BeOpen copyright markings.</title>
<updated>2000-09-01T23:29:29Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2000-09-01T23:29:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8586991099e4ace18ee94163a96b8ea1bed77ebe'/>
<id>urn:sha1:8586991099e4ace18ee94163a96b8ea1bed77ebe</id>
<content type='text'>
This should match the situation in the 1.6b1 tree.
</content>
</entry>
<entry>
<title>Charles G. Waldman &lt;cgw@fnal.gov&gt;:</title>
<updated>2000-08-24T00:32:09Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2000-08-24T00:32:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ef8ace3a6f6cf8396fa92ae62352e8a29ddfca1d'/>
<id>urn:sha1:ef8ace3a6f6cf8396fa92ae62352e8a29ddfca1d</id>
<content type='text'>
Add the EXTENDED_ARG opcode to the virtual machine, allowing 32-bit
arguments to opcodes instead of being forced to stick to the 16-bit
limit.  This is especially useful for machine-generated code, which
can be too long for the SET_LINENO parameter to fit into 16 bits.

This closes the implementation portion of SourceForge patch #100893.
</content>
</entry>
<entry>
<title>Mass ANSIfication.</title>
<updated>2000-07-22T19:20:54Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2000-07-22T19:20:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=23c9e0024af99379ae517b016b874d57127e9a97'/>
<id>urn:sha1:23c9e0024af99379ae517b016b874d57127e9a97</id>
<content type='text'>
Work around intrcheck.c's desire to pass 'PyErr_CheckSignals' to
'Py_AddPendingCall' by providing a (static) wrapper function that has the
right number of arguments.
</content>
</entry>
</feed>
