Jeremy Hylton
296aef8ebb
Expand comments.
...
Explicitly clear all elements from arena->a_objects and remove
assert() that refcount is 1. It's possible for a program to get a
reference to the list via sys.getobjects() or via gc functions.
2006-03-31 16:41:22 +00:00
Tim Peters
f6386306fb
Document the purpose of the struct _block members.
2006-03-02 21:41:18 +00:00
Tim Peters
6fd92dc44f
Added words about what PyArena_Malloc() does.
2006-03-02 21:14:45 +00:00
Tim Peters
8cfaa0e729
Trimmed trailing whitespace.
2006-03-02 20:37:32 +00:00
Jeremy Hylton
224003baef
Add missing DECREF.
2006-03-01 15:02:24 +00:00
Jeremy Hylton
56820c2bab
Add some stats collection in debugging mode.
...
No good way to extract output yet.
2006-02-28 19:57:06 +00:00
Jeremy Hylton
99b4ee6373
Use simple PyList to implement list of PyObject pointers
2006-02-28 18:52:28 +00:00
Jeremy Hylton
08533fdad6
Tabify
2006-02-28 18:29:00 +00:00
Jeremy Hylton
77f1bb2778
Real arena implementation
...
Replace the toy arena implementation with a real one,
based on allocating 8K chunks of memory by default.
2006-02-28 17:53:04 +00:00
Fredrik Lundh
93d69a7948
fixed compilation with an ordinary C89 compiler
2005-12-18 15:44:21 +00:00
Neal Norwitz
84456bdab3
Cleanup a bit and make things more consistent.
...
Don't double check for NULLs and don't initialize if not necessary.
No functional changes.
2005-12-18 03:16:20 +00:00
Neal Norwitz
adb69fcdff
Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines,
...
simplifies a lot of error handling code, and fixes many memory leaks.
2005-12-17 20:54:49 +00:00