[Python-Dev] No longer enable Py_TRACE_REFS by default in debug build (original) (raw)

Nathaniel Smith njs at pobox.com
Thu Apr 11 21:06:14 EDT 2019


On Thu, Apr 11, 2019 at 8:32 AM Serhiy Storchaka <storchaka at gmail.com> wrote:

On other hand, since using the debug allocator doesn't cause problems with compatibility, it may be possible to use similar technique for the objects double list. Although this is not easy because of objects placed at static memory.

I guess one could track static objects separately, e.g. keep a simple global PyList containing all statically allocated objects. (This is easy since we know they're all immortal.) And then sys.getobjects() could walk the heap objects and statically allocated objects separately.

-n

-- Nathaniel J. Smith -- https://vorpus.org



More information about the Python-Dev mailing list