php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
Go to the source code of this file.
Data Structures | |
struct | _zend_leak_info |
struct | _zend_mm_handlers |
struct | _zend_mm_storage |
Typedefs | |
typedef struct _zend_leak_info | zend_leak_info |
typedef struct _zend_mm_heap | zend_mm_heap |
typedef struct _zend_mm_storage | zend_mm_storage |
typedef void *(* | zend_mm_chunk_alloc_t) (zend_mm_storage *storage, size_t size, size_t alignment) |
typedef void(* | zend_mm_chunk_free_t) (zend_mm_storage *storage, void *chunk, size_t size) |
typedef bool(* | zend_mm_chunk_truncate_t) (zend_mm_storage *storage, void *chunk, size_t old_size, size_t new_size) |
typedef bool(* | zend_mm_chunk_extend_t) (zend_mm_storage *storage, void *chunk, size_t old_size, size_t new_size) |
typedef struct _zend_mm_handlers | zend_mm_handlers |
Definition at line 146 of file zend_alloc.h.
Definition at line 145 of file zend_alloc.h.
Definition at line 144 of file zend_alloc.h.
Definition at line 143 of file zend_alloc.h.
Definition at line 231 of file zend_alloc.h.
Definition at line 237 of file zend_alloc.h.
Definition at line 158 of file zend_alloc.h.
Definition at line 172 of file zend_alloc.h.
Definition at line 155 of file zend_alloc.h.
Definition at line 157 of file zend_alloc.h.
Definition at line 156 of file zend_alloc.h.
Definition at line 171 of file zend_alloc.h.
Definition at line 138 of file zend_alloc.h.
Definition at line 140 of file zend_alloc.h.
Definition at line 151 of file zend_alloc.h.
Definition at line 153 of file zend_alloc.h.
Definition at line 152 of file zend_alloc.h.
Definition at line 169 of file zend_alloc.h.
Definition at line 159 of file zend_alloc.h.
Definition at line 160 of file zend_alloc.h.
Definition at line 163 of file zend_alloc.h.
Definition at line 176 of file zend_alloc.h.
Definition at line 174 of file zend_alloc.h.
Definition at line 162 of file zend_alloc.h.
Definition at line 175 of file zend_alloc.h.
Definition at line 173 of file zend_alloc.h.
Definition at line 164 of file zend_alloc.h.
Definition at line 178 of file zend_alloc.h.
Definition at line 165 of file zend_alloc.h.
Definition at line 179 of file zend_alloc.h.
Definition at line 234 of file zend_alloc.h.
Definition at line 240 of file zend_alloc.h.
#define pecalloc | ( | nmemb, | |
size, | |||
persistent ) |
Definition at line 200 of file zend_alloc.h.
#define pecalloc_rel | ( | nmemb, | |
size, | |||
persistent ) |
Definition at line 211 of file zend_alloc.h.
#define pefree | ( | ptr, | |
persistent ) |
Definition at line 191 of file zend_alloc.h.
#define pefree_rel | ( | ptr, | |
persistent ) |
Definition at line 210 of file zend_alloc.h.
#define pefree_size | ( | ptr, | |
size, | |||
persistent ) |
Definition at line 192 of file zend_alloc.h.
#define pemalloc | ( | size, | |
persistent ) |
Definition at line 189 of file zend_alloc.h.
#define pemalloc_rel | ( | size, | |
persistent ) |
Definition at line 209 of file zend_alloc.h.
#define perealloc | ( | ptr, | |
size, | |||
persistent ) |
Definition at line 201 of file zend_alloc.h.
#define perealloc2 | ( | ptr, | |
size, | |||
copy_size, | |||
persistent ) |
Definition at line 202 of file zend_alloc.h.
#define perealloc2_recoverable | ( | ptr, | |
size, | |||
persistent ) |
Definition at line 205 of file zend_alloc.h.
#define perealloc2_recoverable_rel | ( | ptr, | |
size, | |||
copy_size, | |||
persistent ) |
Definition at line 215 of file zend_alloc.h.
#define perealloc2_rel | ( | ptr, | |
size, | |||
copy_size, | |||
persistent ) |
Definition at line 213 of file zend_alloc.h.
#define perealloc_recoverable | ( | ptr, | |
size, | |||
persistent ) |
Definition at line 204 of file zend_alloc.h.
#define perealloc_recoverable_rel | ( | ptr, | |
size, | |||
persistent ) |
Definition at line 214 of file zend_alloc.h.
#define perealloc_rel | ( | ptr, | |
size, | |||
persistent ) |
Definition at line 212 of file zend_alloc.h.
#define pestrdup | ( | s, | |
persistent ) |
Definition at line 206 of file zend_alloc.h.
#define pestrdup_rel | ( | s, | |
persistent ) |
Definition at line 216 of file zend_alloc.h.
#define pestrndup | ( | s, | |
length, | |||
persistent ) |
Definition at line 207 of file zend_alloc.h.
Definition at line 154 of file zend_alloc.h.
Definition at line 170 of file zend_alloc.h.
Definition at line 161 of file zend_alloc.h.
Definition at line 177 of file zend_alloc.h.
#define safe_pemalloc | ( | nmemb, | |
size, | |||
offset, | |||
persistent ) |
Definition at line 190 of file zend_alloc.h.
#define safe_perealloc | ( | ptr, | |
nmemb, | |||
size, | |||
offset, | |||
persistent ) |
Definition at line 203 of file zend_alloc.h.
Definition at line 166 of file zend_alloc.h.
Definition at line 180 of file zend_alloc.h.
Definition at line 35 of file zend_alloc.h.
Definition at line 37 of file zend_alloc.h.
#define ZEND_MM_ALIGNMENT_MASK ~(ZEND_MM_ALIGNMENT - 1) |
Definition at line 33 of file zend_alloc.h.
Definition at line 254 of file zend_alloc.h.
Definition at line 260 of file zend_alloc.h.
Definition at line 258 of file zend_alloc.h.
Definition at line 264 of file zend_alloc.h.
#define ZEND_MM_CUSTOM_HEAP_DEBUG 2 |
Definition at line 273 of file zend_alloc.h.
#define ZEND_MM_CUSTOM_HEAP_NONE 0 |
Definition at line 271 of file zend_alloc.h.
#define ZEND_MM_CUSTOM_HEAP_STD 1 |
Definition at line 272 of file zend_alloc.h.
Definition at line 255 of file zend_alloc.h.
Definition at line 261 of file zend_alloc.h.
#define ZEND_MM_OVERHEAD 0 |
Definition at line 60 of file zend_alloc.h.
Definition at line 256 of file zend_alloc.h.
Definition at line 257 of file zend_alloc.h.
Definition at line 263 of file zend_alloc.h.
Definition at line 262 of file zend_alloc.h.
typedef struct _zend_leak_info zend_leak_info |
typedef void *(* zend_mm_chunk_alloc_t) (zend_mm_storage *storage, size_t size, size_t alignment) |
Definition at line 299 of file zend_alloc.h.
typedef bool(* zend_mm_chunk_extend_t) (zend_mm_storage *storage, void *chunk, size_t old_size, size_t new_size) |
Definition at line 302 of file zend_alloc.h.
typedef void(* zend_mm_chunk_free_t) (zend_mm_storage *storage, void *chunk, size_t size) |
Definition at line 300 of file zend_alloc.h.
typedef bool(* zend_mm_chunk_truncate_t) (zend_mm_storage *storage, void *chunk, size_t old_size, size_t new_size) |
Definition at line 301 of file zend_alloc.h.
typedef struct _zend_mm_handlers zend_mm_handlers |
typedef struct _zend_mm_heap zend_mm_heap |
Definition at line 244 of file zend_alloc.h.
typedef struct _zend_mm_storage zend_mm_storage |
Definition at line 297 of file zend_alloc.h.
ZEND_API ZEND_ATTRIBUTE_MALLOC void * __zend_calloc | ( | size_t | nmemb, |
size_t len ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
ZEND_API void __zend_free | ( | void *p ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC | ) |
Definition at line 3306 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC void * __zend_malloc | ( | size_t len ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC | ) |
Definition at line 3278 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC void ZEND_API void * __zend_realloc | ( | void * | p, |
size_t len ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
Definition at line 3297 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC char * __zend_strdup | ( | const char * | s | ) |
Definition at line 3312 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC void *ZEND_FASTCALL _ecalloc | ( | size_t | nmemb, |
size_t size ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
ZEND_API void ZEND_FASTCALL _efree | ( | void *ptr ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC | ) |
Definition at line 2743 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC void *ZEND_FASTCALL _emalloc | ( | size_t size ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC | ) |
Definition at line 2733 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC void *ZEND_FASTCALL ZEND_API void *ZEND_FASTCALL _erealloc | ( | void * | ptr, |
size_t size ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
Definition at line 2754 of file zend_alloc.c.
ZEND_API void *ZEND_FASTCALL _erealloc2 | ( | void * | ptr, |
size_t | size, | ||
size_t copy_size ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
Definition at line 2764 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC char *ZEND_FASTCALL _estrdup | ( | const char *s ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC | ) |
Definition at line 2809 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC char *ZEND_FASTCALL _estrndup | ( | const char * | s, |
size_t length ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
Definition at line 2823 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC void *ZEND_FASTCALL _safe_emalloc | ( | size_t | nmemb, |
size_t | size, | ||
size_t offset ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
Definition at line 2779 of file zend_alloc.c.
ZEND_API void *ZEND_FASTCALL _safe_erealloc | ( | void * | ptr, |
size_t | nmemb, | ||
size_t | size, | ||
size_t offset ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
Definition at line 2789 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC void *ZEND_FASTCALL _safe_malloc | ( | size_t | nmemb, |
size_t | size, | ||
size_t | offset ) |
Definition at line 2784 of file zend_alloc.c.
ZEND_API void *ZEND_FASTCALL _safe_realloc | ( | void * | ptr, |
size_t | nmemb, | ||
size_t | size, | ||
size_t | offset ) |
Definition at line 2794 of file zend_alloc.c.
ZEND_API size_t ZEND_FASTCALL _zend_mem_block_size | ( | void *ptr ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC | ) |
Definition at line 2774 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC void *ZEND_FASTCALL _zend_mm_alloc | ( | zend_mm_heap * | heap, |
size_t size ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
Definition at line 2528 of file zend_alloc.c.
ZEND_API size_t ZEND_FASTCALL _zend_mm_block_size | ( | zend_mm_heap * | heap, |
void *p ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
ZEND_API void ZEND_FASTCALL _zend_mm_free | ( | zend_mm_heap * | heap, |
void *p ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
ZEND_API void *ZEND_FASTCALL _zend_mm_realloc | ( | zend_mm_heap * | heap, |
void * | p, | ||
size_t size ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
Definition at line 2538 of file zend_alloc.c.
ZEND_API void *ZEND_FASTCALL _zend_mm_realloc2 | ( | zend_mm_heap * | heap, |
void * | p, | ||
size_t | size, | ||
size_t copy_size ZEND_FILE_LINE_DC | ZEND_FILE_LINE_ORIG_DC ) |
Definition at line 2543 of file zend_alloc.c.
Definition at line 2582 of file zend_alloc.c.
Definition at line 2591 of file zend_alloc.c.
Definition at line 2922 of file zend_alloc.c.
Definition at line 3069 of file zend_alloc.c.
Definition at line 2880 of file zend_alloc.c.
ZEND_API size_t zend_memory_peak_usage | ( | bool | real_usage | ) |
Definition at line 2902 of file zend_alloc.c.
Definition at line 2914 of file zend_alloc.c.
ZEND_API size_t zend_memory_usage | ( | bool | real_usage | ) |
Definition at line 2889 of file zend_alloc.c.
ZEND_API size_t zend_mm_gc | ( | zend_mm_heap * | heap | ) |
Definition at line 2072 of file zend_alloc.c.
ZEND_API void zend_mm_get_custom_handlers | ( | zend_mm_heap * | heap, |
void *(** | _malloc )(size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC), | ||
void(** | _free )(void *ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC), | ||
void *(** | _realloc )(void *, size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ) |
Definition at line 3141 of file zend_alloc.c.
ZEND_API void zend_mm_get_custom_handlers_ex | ( | zend_mm_heap * | heap, |
void *(** | _malloc )(size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC), | ||
void(** | _free )(void *ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC), | ||
void *(** | _realloc )(void *, size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC), | ||
size_t(** | _gc )(void), | ||
void(** | _shutdown )(bool, bool) ) |
Definition at line 3151 of file zend_alloc.c.
ZEND_API zend_mm_heap * zend_mm_get_heap | ( | void | ) |
Definition at line 3094 of file zend_alloc.c.
ZEND_API zend_mm_storage * zend_mm_get_storage | ( | zend_mm_heap * | heap | ) |
Definition at line 3191 of file zend_alloc.c.
ZEND_API bool zend_mm_is_custom_heap | ( | zend_mm_heap * | new_heap | ) |
Definition at line 3099 of file zend_alloc.c.
ZEND_API void zend_mm_set_custom_handlers | ( | zend_mm_heap * | heap, |
void *(* | _malloc )(size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC), | ||
void(* | _free )(void *ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC), | ||
void *(* | _realloc )(void *, size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ) |
Definition at line 3108 of file zend_alloc.c.
ZEND_API void zend_mm_set_custom_handlers_ex | ( | zend_mm_heap * | heap, |
void *(* | _malloc )(size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC), | ||
void(* | _free )(void *ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC), | ||
void *(* | _realloc )(void *, size_t ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC), | ||
size_t(* | _gc )(void), | ||
void(* | _shutdown )(bool, bool) ) |
Definition at line 3118 of file zend_alloc.c.
ZEND_API zend_mm_heap * zend_mm_set_heap | ( | zend_mm_heap * | new_heap | ) |
Definition at line 3085 of file zend_alloc.c.
ZEND_API void zend_mm_shutdown | ( | zend_mm_heap * | heap, |
bool | full_shutdown, | ||
bool | silent ) |
Definition at line 2394 of file zend_alloc.c.
ZEND_API zend_mm_heap * zend_mm_startup | ( | void | ) |
Definition at line 3200 of file zend_alloc.c.
ZEND_API zend_mm_heap * zend_mm_startup_ex | ( | const zend_mm_handlers * | handlers, |
void * | data, | ||
size_t | data_size ) |
Definition at line 3205 of file zend_alloc.c.
ZEND_API zend_result zend_set_memory_limit | ( | size_t | memory_limit | ) |
Definition at line 2856 of file zend_alloc.c.
ZEND_API ZEND_ATTRIBUTE_MALLOC char *ZEND_FASTCALL zend_strndup | ( | const char * | s, |
size_t | length ) |
Definition at line 2838 of file zend_alloc.c.