[issue33607] Explicitly track object ownership (and allocator).

2018-05-22 Thread STINNER Victor
STINNER Victor added the comment: "Either we'd add 2 pointer-size fields to PyObject or we would keep a separate hash table (or two) pointing from each object to the info (...)" The expect a huge impact on the memory footprint. I dislike the idea. Currently, the smallest Python object is: >>

[issue33607] Explicitly track object ownership (and allocator).

2018-05-22 Thread Eric Snow
New submission from Eric Snow : When an object is created it happens relative to the current thread (ergo interpreter) and the current allocator (part of global state). We do not track either of these details for the object. It may make sense to start doing so (reasons next). Regarding trackin