mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Add Vladimir Marangozov's object allocator. It is disabled by default. This
closes SF patch #401229.
This commit is contained in:
parent
29906eef3a
commit
a35c688055
9 changed files with 1144 additions and 343 deletions
|
@ -76,6 +76,13 @@ recommended to use PyObject_{New, NewVar, Del}. */
|
|||
memory management purposes exclusively. Both the core and extension
|
||||
modules should use the PyObject_* API. */
|
||||
|
||||
#ifdef WITH_PYMALLOC
|
||||
#define PyCore_OBJECT_MALLOC_FUNC _PyCore_ObjectMalloc
|
||||
#define PyCore_OBJECT_REALLOC_FUNC _PyCore_ObjectRealloc
|
||||
#define PyCore_OBJECT_FREE_FUNC _PyCore_ObjectFree
|
||||
#define NEED_TO_DECLARE_OBJECT_MALLOC_AND_FRIEND
|
||||
#endif /* !WITH_PYMALLOC */
|
||||
|
||||
#ifndef PyCore_OBJECT_MALLOC_FUNC
|
||||
#undef PyCore_OBJECT_REALLOC_FUNC
|
||||
#undef PyCore_OBJECT_FREE_FUNC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue