summaryrefslogtreecommitdiff
path: root/Python/pyarena.c
AgeCommit message (Collapse)AuthorLines
2006-07-22Fix more memory allocation issues found with failmalloc.Neal Norwitz-4/+4
2006-04-15Fix sys.getobjects(0): we get a reference to theMartin v. Löwis-0/+3
arena's "private" list of objects, so there might be two references to that list.
2006-04-14ALIGNMENT_SHIFT is not usedNeal Norwitz-1/+0
2006-04-13Force 8-alignment of memory blocks, as needed onMartin v. Löwis-1/+8
64-bit machines that require pointers to be aligned (e.g. IA64)
2006-04-11more low-hanging fruit to make code compile under a C++ compiler. NotAnthony Baxter-4/+4
entirely happy with the two new VISIT macros in compile.c, but I couldn't see a better approach.
2006-03-31Expand comments.Jeremy Hylton-0/+27
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-02Document the purpose of the struct _block members.Tim Peters-1/+18
2006-03-02Added words about what PyArena_Malloc() does.Tim Peters-1/+1
2006-03-02Trimmed trailing whitespace.Tim Peters-6/+6
2006-03-01Add missing DECREF.Jeremy Hylton-1/+5
2006-02-28Add some stats collection in debugging mode.Jeremy Hylton-3/+41
No good way to extract output yet.
2006-02-28Use simple PyList to implement list of PyObject pointersJeremy Hylton-44/+20
2006-02-28TabifyJeremy Hylton-82/+85
2006-02-28Real arena implementationJeremy Hylton-62/+80
Replace the toy arena implementation with a real one, based on allocating 8K chunks of memory by default.
2005-12-18fixed compilation with an ordinary C89 compilerFredrik Lundh-2/+2
2005-12-18Cleanup a bit and make things more consistent.Neal Norwitz-7/+2
Don't double check for NULLs and don't initialize if not necessary. No functional changes.
2005-12-17Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines,Neal Norwitz-0/+133
simplifies a lot of error handling code, and fixes many memory leaks.