- 13 Haz, 2002 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 06 Haz, 2002 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
- 21 May, 2002 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
-
- 04 May, 2002 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
generations is now an array. This cleans up some code and makes it easy to change the number of generations. Also, implemented a gc_list_is_empty() function. This makes the logic a little clearer in places. The performance impact of these changes should be negligible. One functional change is that allocation/collection counters are always zeroed at the start of a collection. This should fix SF bug #551915. This change is too big for back-porting but the minimal patch on SF looks good for a bugfix release.
-
- 28 Nis, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
_PyObject_GC_NewVar: Could call PyObject_INIT_VAR likewise. Bugfix candidate.
-
- 12 Nis, 2002 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
compatibility function. Make PyObject_GC_Track and PyObject_GC_UnTrack functions instead of trivial macros wrapping functions. Provide binary compatibility functions.
-
- 29 Mar, 2002 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
-
- 28 Mar, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
The fix makes it possible to call PyObject_GC_UnTrack() more than once on the same object, and then move the PyObject_GC_UnTrack() call to *before* the trashcan code is invoked. BUGFIX CANDIDATE!
-
- 22 Mar, 2002 2 kayıt (commit)
-
-
Neil Schemenauer yazdı
-
Neil Schemenauer yazdı
-
- 29 Ock, 2002 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 02 Ara, 2001 2 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
- 29 Kas, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 24 Kas, 2001 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 01 Kas, 2001 3 kayıt (commit)
-
-
Tim Peters yazdı
"complicated_bool".
-
Neil Schemenauer yazdı
objects to save in gc.garbage. This should be the last change needed to fix SF bug 477059: "__del__ on new classes vs. GC". Note that this change slightly changes the behavior of the collector. Before, if a cycle was found that contained instances with __del__ methods then all instance objects in that cycle were saved in gc.garbage. Now, only objects with __del__ methods are saved in gc.garbage.
-
Guido van Rossum yazdı
When moving objects with a __del__ attribute to a special list, look for __del__ on new-style classes with the HEAPTYPE flag set as well. (HEAPTYPE means the class was created by a class statement.)
-
- 31 Eki, 2001 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
SF bug 476129: "gc.collect sometimes hangs".
-
- 12 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
up GCC warnings.
-
- 11 Eki, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
The platform requires 8-byte alignment for doubles, but the GC header was 12 bytes and that threw off the natural alignment of the double members of a subtype of complex. The fix puts the GC header into a union with a double as the other member, to force no-looser-than double alignment of GC headers. On boxes that require 8-byte alignment for doubles, this may add pad bytes to the GC header accordingly; ditto for platforms that *prefer* 8-byte alignment for doubles. On platforms that don't care, it shouldn't change the memory layout (because the size of the old GC header is certainly greater than the size of a double on all platforms, so unioning with a double shouldn't change size or alignment on such boxes).
-
- 07 Eki, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
This simplifies the rounding in _PyObject_VAR_SIZE, allows to restore the pre-rounding calling sequence, and allows some nice little simplifications in its callers. I'm still making it return a size_t, though.
-
- 06 Eki, 2001 3 kayıt (commit)
-
-
Tim Peters yazdı
As Guido suggested, this makes the new subclassing code substantially simpler. But the mechanics of doing it w/ C macro semantics are a mess, and _PyObject_VAR_SIZE has a new calling sequence now. Question: The PyObject_NEW_VAR macro appears to be part of the public API. Regardless of what it expands to, the notion that it has to round up the memory it allocates is new, and extensions containing the old PyObject_NEW_VAR macro expansion (which was embedded in the PyObject_NEW_VAR expansion) won't do this rounding. But the rounding isn't actually *needed* except for new-style instances with dict pointers after a variable-length blob of embedded data. So my guess is that we do not need to bump the API version for this (as the rounding isn't needed for anything an extension can do unless it's recompiled anyway). What's your guess?
-
Tim Peters yazdı
pad memory to properly align the __dict__ pointer in all cases. gcmodule.c/objimpl.h, _PyObject_GC_Malloc: + Added a "padding" argument so that this flavor of malloc can allocate enough bytes for alignment padding (it can't know this is needed, but its callers do). typeobject.c, PyType_GenericAlloc: + Allocated enough bytes to align the __dict__ pointer. + Sped and simplified the round-up-to-PTRSIZE logic. + Added blank lines so I could parse the if/else blocks <0.7 wink>.
-
Tim Peters yazdı
no way to talk the debugger into showing me how many bytes were being allocated.
-
- 30 Agu, 2001 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
visit_finalizer_reachable since it's the same as visit_reachable. Rename visit_reachable to visit_move. Objects can now have the GC type flag set, reachable by tp_traverse and not be in a GC linked list. This should make the collector more robust and easier to use by extension module writers. Add memory management functions for container objects (new, del, resize).
-
- 10 Agu, 2001 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
of PyList_Append.
-
- 09 Agu, 2001 2 kayıt (commit)
-
-
Neil Schemenauer yazdı
get_referents, and is not yet documented in the library manual). Suggestions for a better name welcome.
-
Neil Schemenauer yazdı
-
- 04 Eki, 2000 2 kayıt (commit)
-
-
Neil Schemenauer yazdı
-
Neil Schemenauer yazdı
-
- 22 Eyl, 2000 2 kayıt (commit)
-
-
Neil Schemenauer yazdı
-
Neil Schemenauer yazdı
collector will be saved in gc.garbage. This is useful for debugging a program that creates reference cycles. - Fix else statements in gcmodule.c to conform to Python coding standards.
-
- 05 Eyl, 2000 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
- 01 Eyl, 2000 2 kayıt (commit)
-
-
Jeremy Hylton yazdı
we don't need to run gc frequently
-
Jeremy Hylton yazdı
add sanity check to gc: if an exception occurs during GC, call PyErr_WriteUnraisable and then call Py_FatalEror.
-
- 31 Agu, 2000 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
also initial static debug variable to 0
-
- 06 Agu, 2000 1 kayıt (commit)
-
-
Vladimir Marangozov yazdı
Small stylistic changes by VM: - is_enabled() -> isenabled() - static ... Py_<func> -> static ... gc_<func>
-
- 12 Tem, 2000 2 kayıt (commit)
-
-
Barry Warsaw yazdı
debug_cycle(), and don't cast the pointer to a long. Neither needs the literal `0x' prefix as %p automatically inserts this (on Linux at least).
-
Fred Drake yazdı
so we get better error messages.
-