This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients njs, vstinner
Date 2016-03-10.14:17:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The API of Python memory allocators was extended for numpy: calloc() was added (issue #21233). It looks like it's not enough because allocations with an alignment is also required for vector operations (SIMD). For Python, there is the issue #18835 but the benefit for Python code is unclear or negligible.

Instead of extending the API each time, it would be simpler to add an API to allow third party memory allocators to track/untrack memory in tracemalloc. I guess that the API should make the assumption that the GIL is not hold and so try to acquire the GIL (if it's not already hold).

Related numpy issue:

See also:
Date User Action Args
2016-03-10 14:17:10vstinnersetrecipients: + vstinner, njs
2016-03-10 14:17:10vstinnersetmessageid: <>
2016-03-10 14:17:10vstinnerlinkissue26530 messages
2016-03-10 14:17:10vstinnercreate