Lines Matching refs:persistent
113 static void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pemalloc()
118 …zend_long * threshold = persistent? &MYSQLND_G(debug_malloc_fail_threshold):&MYSQLND_G(debug_emall… in _mysqlnd_pemalloc()
129 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
134 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
137 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p persistent=%u", size, ret, persistent); in _mysqlnd_pemalloc()
140 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_MALLOC_COUNT:STAT_MEM_EMALLOC_COUNT; in _mysqlnd_pemalloc()
141 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_MALLOC_AMOUNT:STAT_MEM_EMALLOC_AMOUNT; in _mysqlnd_pemalloc()
190 static void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pecalloc()
195 …zend_long * threshold = persistent? &MYSQLND_G(debug_calloc_fail_threshold):&MYSQLND_G(debug_ecall… in _mysqlnd_pecalloc()
205 ret = pecalloc_rel(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
210 ret = pecalloc_rel(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
216 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_CALLOC_COUNT:STAT_MEM_ECALLOC_COUNT; in _mysqlnd_pecalloc()
217 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_CALLOC_AMOUNT:STAT_MEM_ECALLOC_AMOUNT; in _mysqlnd_pecalloc()
266 static void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_perealloc()
272 …zend_long * threshold = persistent? &MYSQLND_G(debug_realloc_fail_threshold):&MYSQLND_G(debug_erea… in _mysqlnd_perealloc()
279 …C_INF_FMT("ptr=%p old_size=%lu new_size=%lu persistent=%u", ptr, old_size, new_size, persistent); in _mysqlnd_perealloc()
284 ret = perealloc_rel(REAL_PTR(ptr), REAL_SIZE(new_size), persistent); in _mysqlnd_perealloc()
289 …C_INF_FMT("ptr=%p old_size=%lu new_size=%lu persistent=%u", ptr, old_size, new_size, persistent); in _mysqlnd_perealloc()
290 ret = perealloc_rel(REAL_PTR(ptr), REAL_SIZE(new_size), persistent); in _mysqlnd_perealloc()
296 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_REALLOC_COUNT:STAT_MEM_EREALLOC_COUNT; in _mysqlnd_perealloc()
297 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_REALLOC_AMOUNT:STAT_MEM_EREALLOC_AMOUNT; in _mysqlnd_perealloc()
338 static void _mysqlnd_pefree(void *ptr, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pefree()
350 TRACE_ALLOC_INF_FMT("ptr=%p persistent=%u", ptr, persistent); in _mysqlnd_pefree()
357 pefree_rel(REAL_PTR(ptr), persistent); in _mysqlnd_pefree()
361 MYSQLND_INC_GLOBAL_STATISTIC_W_VALUE2(persistent? STAT_MEM_FREE_COUNT:STAT_MEM_EFREE_COUNT, 1, in _mysqlnd_pefree()
362 persistent? STAT_MEM_FREE_AMOUNT:STAT_MEM_EFREE_AMOUNT, free_amount); in _mysqlnd_pefree()
511 static char * _mysqlnd_pememdup(const char * const ptr, size_t length, zend_bool persistent MYSQLND… in _mysqlnd_pememdup()
525 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pememdup()
533 MYSQLND_INC_GLOBAL_STATISTIC(persistent? STAT_MEM_DUP_COUNT : STAT_MEM_EDUP_COUNT); in _mysqlnd_pememdup()
542 static char * _mysqlnd_pestrndup(const char * const ptr, size_t length, zend_bool persistent MYSQLN… in _mysqlnd_pestrndup()
556 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pestrndup()
569 MYSQLND_INC_GLOBAL_STATISTIC(persistent? STAT_MEM_STRNDUP_COUNT : STAT_MEM_ESTRNDUP_COUNT); in _mysqlnd_pestrndup()
583 static char * _mysqlnd_pestrdup(const char * const ptr, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pestrdup()
601 ret = pemalloc_rel(ZSTR_LEN(tmp_str.s) + sizeof(size_t), persistent); in _mysqlnd_pestrdup()
606 MYSQLND_INC_GLOBAL_STATISTIC(persistent? STAT_MEM_STRDUP_COUNT : STAT_MEM_ESTRDUP_COUNT); in _mysqlnd_pestrdup()
659 static void * mysqlnd_zend_mm_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pemalloc()
661 return pemalloc_rel(size, persistent); in mysqlnd_zend_mm_pemalloc()
675 static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLN… in mysqlnd_zend_mm_pecalloc()
677 return pecalloc_rel(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc()
691 static void * mysqlnd_zend_mm_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_ME… in mysqlnd_zend_mm_perealloc()
693 return perealloc_rel(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc()
707 static void mysqlnd_zend_mm_pefree(void * ptr, zend_bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pefree()
709 pefree_rel(ptr, persistent); in mysqlnd_zend_mm_pefree()
747 static char * mysqlnd_zend_mm_pememdup(const char * const ptr, size_t length, zend_bool persistent … in mysqlnd_zend_mm_pememdup()
749 char * dest = pemalloc_rel(length, persistent); in mysqlnd_zend_mm_pememdup()
759 static char * mysqlnd_zend_mm_pestrndup(const char * const ptr, size_t length, zend_bool persistent… in mysqlnd_zend_mm_pestrndup()
761 return persistent? zend_strndup(ptr, length ) : estrndup_rel(ptr, length); in mysqlnd_zend_mm_pestrndup()
767 static char * mysqlnd_zend_mm_pestrdup(const char * const ptr, zend_bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pestrdup()
769 return pestrdup_rel(ptr, persistent); in mysqlnd_zend_mm_pestrdup()