<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Parser/node.c, branch 2.6</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.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Parser/node.c?h=2.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2010-05-09T15:15:40Z</updated>
<entry>
<title>Recorded merge of revisions 81029 via svnmerge from</title>
<updated>2010-05-09T15:15:40Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2010-05-09T15:15:40Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c7c96a90bcf1366ac6f350f5506d0afee611e351'/>
<id>urn:sha1:c7c96a90bcf1366ac6f350f5506d0afee611e351</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines

  Untabify C files. Will watch buildbots.
........
</content>
</entry>
<entry>
<title>Merge in release25-maint r60793:</title>
<updated>2008-06-11T07:41:16Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2008-06-11T07:41:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9d53457e599623fbad90833c3448835b42d7e7f9'/>
<id>urn:sha1:9d53457e599623fbad90833c3448835b42d7e7f9</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>Fix comment typo</title>
<updated>2006-06-06T17:10:41Z</updated>
<author>
<name>Andrew M. Kuchling</name>
<email>amk@amk.ca</email>
</author>
<published>2006-06-06T17:10:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=12ca69bc0e42e799db52cfd0030c8b1d18049bef'/>
<id>urn:sha1:12ca69bc0e42e799db52cfd0030c8b1d18049bef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF patch #1467512, fix double free with triple quoted string in standard build.</title>
<updated>2006-04-10T06:42:25Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-04-10T06:42:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2c4e4f98397bcc591ad3a551e1e57cea0e2bd986'/>
<id>urn:sha1:2c4e4f98397bcc591ad3a551e1e57cea0e2bd986</id>
<content type='text'>
This was the result of inconsistent use of PyMem_* and PyObject_* allocators.
By changing to use PyObject_* allocator almost everywhere, this removes
the inconsistency.
</content>
</entry>
<entry>
<title>Patch #1440601: Add col_offset attribute to AST nodes.</title>
<updated>2006-03-01T22:49:05Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2006-03-01T22:49:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=49c5da1d88f605248167f4d95b1dfe08c1f703c7'/>
<id>urn:sha1:49c5da1d88f605248167f4d95b1dfe08c1f703c7</id>
<content type='text'>
</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>
</feed>
