PEP 445
This commit is contained in:
parent
f5879af95b
commit
4cd865a624
11
pep-0445.txt
11
pep-0445.txt
|
@ -343,6 +343,9 @@ Use macros to get customizable allocators
|
|||
To have no overhead in the default configuration, customizable allocators would
|
||||
be an optional feature enabled by a configuration option or by macros.
|
||||
|
||||
Not having to recompile Python makes debug hooks easy to use in practice.
|
||||
Extensions modules don't have to be compiled with or without macros.
|
||||
|
||||
|
||||
Pass the C filename and line number
|
||||
-----------------------------------
|
||||
|
@ -408,6 +411,14 @@ External libraries
|
|||
|
||||
* glib: `g_mem_set_vtable()
|
||||
<http://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-mem-set-vtable>`_
|
||||
* OpenSSL: `CRYPTO_set_mem_functions()
|
||||
<http://git.openssl.org/gitweb/?p=openssl.git;a=blob;f=crypto/mem.c;h=f7984fa958eb1edd6c61f6667f3f2b29753be662;hb=HEAD#l124>`_
|
||||
to set memory management functions globally
|
||||
* expat: `parserCreate()
|
||||
<http://hg.python.org/cpython/file/cc27d50bd91a/Modules/expat/xmlparse.c#l724>`_
|
||||
has a per-instance memory handler
|
||||
* libxml2: `xmlGcMemSetup() <http://xmlsoft.org/html/libxml-xmlmemory.html>`_,
|
||||
global
|
||||
|
||||
See also the `GNU libc: Memory Allocation Hooks
|
||||
<http://www.gnu.org/software/libc/manual/html_node/Hooks-for-Malloc.html>`_.
|
||||
|
|
Loading…
Reference in New Issue