Message190962
Amaury Forgeot d'Arc added the comment:
> I prefer the new version without PYMEM_TRACE_MALLOC :-)
Well, py_setallocators-filename.patch is more a proof-of-concept
showing how to use my Py_SetAllocators() API to pass the C trace
(filename/line number), than a real proposition. The patch is very
intrusive and huge, I also prefer py_setallocators-3.patch :-)
> Can we rename "API" and "api_id" to something more specific? maybe DOMAIN and domain_id?
Something like:
{PY_ALLOC_MEM_DOMAIN, PY_ALLOC_OBJECT_DOMAIN}.
or
{PYMEM_DOMAIN, PYOBJECT_DOMAIN}
?
There are only two values, another option is to duplicate functions:
- PyMem_GetAllocators(), PyMem_SetAllocators(), PyMem_Malloc(), ..
- PyObject_GetAllocators(), PyObject_SetAllocators(), PyObject_Malloc(), ..
I prefer PyMem_SetAllocators() over PYOBJECT_DOMAIN. |
|
Date |
User |
Action |
Args |
2013-06-11 11:59:00 | vstinner | set | recipients:
+ vstinner, barry, rhettinger, gregory.p.smith, amaury.forgeotdarc, ncoghlan, Rhamphoryncus, pitrou, kristjan.jonsson, jszakmeister, tlesher, jlaurila, neilo, pjmcnerney |
2013-06-11 11:59:00 | vstinner | link | issue3329 messages |
2013-06-11 11:59:00 | vstinner | create | |
|