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