[Python-Dev] Cycle collection enhancement idea (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sun Jun 29 16:53:45 CEST 2008
- Previous message: [Python-Dev] Cycle collection enhancement idea
- Next message: [Python-Dev] Cycle collection enhancement idea
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Antoine Pitrou <solipsis pitrou.net> writes:
I was thinking a flag in the PyObject header would do the trick but there aren't any flags in the PyObject header... gasp.
Actually, we only care about GC-tracked objects (the others are deallocated simply when their refcount falls to zero), so this could be another special value in the gc_refs field, together with a specific macro.
- Previous message: [Python-Dev] Cycle collection enhancement idea
- Next message: [Python-Dev] Cycle collection enhancement idea
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]