mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Following issue #13390, fix compilation --without-pymalloc, and make sys.getallocatedblocks() return 0 in that situation.
This commit is contained in:
parent
3438fa496d
commit
928405303d
3 changed files with 21 additions and 8 deletions
|
@ -1316,6 +1316,13 @@ PyObject_Free(void *p)
|
|||
{
|
||||
PyMem_FREE(p);
|
||||
}
|
||||
|
||||
Py_ssize_t
|
||||
_Py_GetAllocatedBlocks(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* WITH_PYMALLOC */
|
||||
|
||||
#ifdef PYMALLOC_DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue