Lines Matching refs:persistent
852 void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pemalloc()
856 …long * threshold = persistent? &MYSQLND_G(debug_malloc_fail_threshold):&MYSQLND_G(debug_emalloc_fa… in _mysqlnd_pemalloc()
864 ret = pemalloc(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
872 DBG_INF_FMT("size=%lu ptr=%p persistent=%u", size, ret, persistent); in _mysqlnd_pemalloc()
875 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_MALLOC_COUNT:STAT_MEM_EMALLOC_COUNT; in _mysqlnd_pemalloc()
876 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_MALLOC_AMOUNT:STAT_MEM_EMALLOC_AMOUNT; in _mysqlnd_pemalloc()
920 void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pecalloc()
924 …long * threshold = persistent? &MYSQLND_G(debug_calloc_fail_threshold):&MYSQLND_G(debug_ecalloc_fa… in _mysqlnd_pecalloc()
932 ret = pecalloc(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
943 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_CALLOC_COUNT:STAT_MEM_ECALLOC_COUNT; in _mysqlnd_pecalloc()
944 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_CALLOC_AMOUNT:STAT_MEM_ECALLOC_AMOUNT; in _mysqlnd_pecalloc()
988 void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_perealloc()
993 …long * threshold = persistent? &MYSQLND_G(debug_realloc_fail_threshold):&MYSQLND_G(debug_erealloc_… in _mysqlnd_perealloc()
996 …DBG_INF_FMT("ptr=%p old_size=%lu new_size=%lu persistent=%u", ptr, old_size, new_size, persistent)… in _mysqlnd_perealloc()
1002 ret = perealloc(REAL_PTR(ptr), REAL_SIZE(new_size), persistent); in _mysqlnd_perealloc()
1013 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_REALLOC_COUNT:STAT_MEM_EREALLOC_COUNT; in _mysqlnd_perealloc()
1014 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_REALLOC_AMOUNT:STAT_MEM_EREALLOC_AMOUNT; in _mysqlnd_perealloc()
1049 void _mysqlnd_pefree(void *ptr, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pefree()
1055 DBG_INF_FMT("ptr=%p persistent=%u", ptr, persistent); in _mysqlnd_pefree()
1062 pefree(REAL_PTR(ptr), persistent); in _mysqlnd_pefree()
1066 MYSQLND_INC_GLOBAL_STATISTIC_W_VALUE2(persistent? STAT_MEM_FREE_COUNT:STAT_MEM_EFREE_COUNT, 1, in _mysqlnd_pefree()
1067 persistent? STAT_MEM_FREE_AMOUNT:STAT_MEM_EFREE_AMOUNT, free_amount); in _mysqlnd_pefree()
1199 char * _mysqlnd_pestrndup(const char * const ptr, size_t length, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pestrndup()
1207 ret = pemalloc(REAL_SIZE(length) + 1, persistent); in _mysqlnd_pestrndup()
1220 MYSQLND_INC_GLOBAL_STATISTIC(persistent? STAT_MEM_STRNDUP_COUNT : STAT_MEM_ESTRNDUP_COUNT); in _mysqlnd_pestrndup()
1229 char * _mysqlnd_pestrdup(const char * const ptr, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pestrdup()
1242 ret = pemalloc(tmp_str.len + sizeof(size_t), persistent); in _mysqlnd_pestrdup()
1247 MYSQLND_INC_GLOBAL_STATISTIC(persistent? STAT_MEM_STRDUP_COUNT : STAT_MEM_ESTRDUP_COUNT); in _mysqlnd_pestrdup()
1268 static void * mysqlnd_zend_mm_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pemalloc()
1270 return pemalloc(size, persistent); in mysqlnd_zend_mm_pemalloc()
1284 static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLN… in mysqlnd_zend_mm_pecalloc()
1286 return pecalloc(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc()
1300 static void * mysqlnd_zend_mm_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_ME… in mysqlnd_zend_mm_perealloc()
1302 return perealloc(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc()
1316 static void mysqlnd_zend_mm_pefree(void * ptr, zend_bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pefree()
1318 pefree(ptr, persistent); in mysqlnd_zend_mm_pefree()
1356 static char * mysqlnd_zend_mm_pestrndup(const char * const ptr, size_t length, zend_bool persistent… in mysqlnd_zend_mm_pestrndup()
1358 return pestrndup(ptr, length, persistent); in mysqlnd_zend_mm_pestrndup()
1364 static char * mysqlnd_zend_mm_pestrdup(const char * const ptr, zend_bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pestrdup()
1366 return pestrdup(ptr, persistent); in mysqlnd_zend_mm_pestrdup()