Python and Boehm-Demers GC, I have code.

Neil Schemenauer nascheme at ucalgary.ca
Sat Jul 17 00:01:11 EDT 1999
Tim Peters <tim_one at email.msn.com> wrote:
>[Neil Schemenauer]
>> I have added the Boehm-Demers garbage collector to Python and it
>> works well!
>> ...
>
>That's good, but I'm not clear on what this means.  The patch didn't seem to
>do more than replace malloc/calloc/realloc/free with the BDW versions; in
>particular, Py_USE_GC_FREE was #define'd, and you ran tests without
>significant cyclic structures, so it doesn't *appear* that anything more
>happened here than that a different implementation of the malloc family got
>plugged in.  Did the "collection" phase of BDW find any trash at all?

It doesn't unless you create some.  The patch creates a version
of Python that uses GC only to clean up reference cycles.

>... it would be great if BDW could be invoked
>"just sometimes" to reclaim the cycles RC can't catch.

That is what is happening now.

>semi-encouraging-ly y'rs  - tim

Thanks.


    Neil


BTW, _tkinter is not working perfectly yet.  I think lambdas
passed as callbacks are getting collected.




More information about the Python-list mailing list