mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
* Add a new PyMemAllocators structure
* New functions:
- PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree(): GIL-free memory
allocator functions
- PyMem_GetRawAllocators(), PyMem_SetRawAllocators()
- PyMem_GetAllocators(), PyMem_SetAllocators()
- PyMem_SetupDebugHooks()
- _PyObject_GetArenaAllocators(), _PyObject_SetArenaAllocators()
* Add unit test for PyMem_Malloc(0) and PyObject_Malloc(0)
* Add unit test for new get/set allocators functions
* PyObject_Malloc() now falls back on PyMem_Malloc() instead of malloc() if
size is bigger than SMALL_REQUEST_THRESHOLD, and PyObject_Realloc() falls
back on PyMem_Realloc() instead of realloc()
* PyMem_Malloc() and PyMem_Realloc() now always call malloc() and realloc(),
instead of calling PyObject_Malloc() and PyObject_Realloc() in debug mode
|
||
|---|---|---|
| .. | ||
| abstract.rst | ||
| allocation.rst | ||
| apiabiversion.rst | ||
| arg.rst | ||
| bool.rst | ||
| buffer.rst | ||
| bytearray.rst | ||
| bytes.rst | ||
| capsule.rst | ||
| cell.rst | ||
| code.rst | ||
| codec.rst | ||
| complex.rst | ||
| concrete.rst | ||
| conversion.rst | ||
| datetime.rst | ||
| descriptor.rst | ||
| dict.rst | ||
| exceptions.rst | ||
| file.rst | ||
| float.rst | ||
| function.rst | ||
| gcsupport.rst | ||
| gen.rst | ||
| import.rst | ||
| index.rst | ||
| init.rst | ||
| intro.rst | ||
| iter.rst | ||
| iterator.rst | ||
| list.rst | ||
| long.rst | ||
| mapping.rst | ||
| marshal.rst | ||
| memory.rst | ||
| memoryview.rst | ||
| method.rst | ||
| module.rst | ||
| none.rst | ||
| number.rst | ||
| objbuffer.rst | ||
| object.rst | ||
| objimpl.rst | ||
| refcounting.rst | ||
| reflection.rst | ||
| sequence.rst | ||
| set.rst | ||
| slice.rst | ||
| stable.rst | ||
| structures.rst | ||
| sys.rst | ||
| tuple.rst | ||
| type.rst | ||
| typeobj.rst | ||
| unicode.rst | ||
| utilities.rst | ||
| veryhigh.rst | ||
| weakref.rst | ||