pycore_pymem.h File Reference

Classes

struct  _PyTraceMalloc_Config
 

Macros

#define PYMEM_CLEANBYTE
 
#define PYMEM_DEADBYTE
 
#define PYMEM_FORBIDDENBYTE
 
#define _PyTraceMalloc_Config_INIT
 

Functions

 PyAPI_FUNC (int) _PyMem_SetDefaultAllocator(PyMemAllocatorDomain domain
 
static int _PyMem_IsPtrFreed (void *ptr)
 
 PyAPI_DATA (struct _PyTraceMalloc_Config) _Py_tracemalloc_config
 

Variables

PyMemAllocatorExold_alloc
 
PyMemAllocatorNameallocator
 

Macro Definition Documentation

◆ PYMEM_CLEANBYTE

#define PYMEM_CLEANBYTE

◆ PYMEM_DEADBYTE

#define PYMEM_DEADBYTE

◆ PYMEM_FORBIDDENBYTE

#define PYMEM_FORBIDDENBYTE

◆ _PyTraceMalloc_Config_INIT

#define _PyTraceMalloc_Config_INIT

Function Documentation

◆ PyAPI_FUNC()

PyAPI_FUNC ( int  )

◆ _PyMem_IsPtrFreed()

static int _PyMem_IsPtrFreed ( void *  ptr)
static

◆ PyAPI_DATA()

PyAPI_DATA ( struct _PyTraceMalloc_Config  )

Variable Documentation

◆ old_alloc

PyMemAllocatorEx* old_alloc

◆ allocator

PyMemAllocatorName* allocator