Lines Matching refs:persistent

115 static void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D)  in _mysqlnd_pemalloc()
120 …zend_long * threshold = persistent? &MYSQLND_G(debug_malloc_fail_threshold):&MYSQLND_G(debug_emall… in _mysqlnd_pemalloc()
131 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
136 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
139 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p persistent=%u", size, ret, persistent); in _mysqlnd_pemalloc()
142 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_MALLOC_COUNT:STAT_MEM_EMALLOC_COUNT; in _mysqlnd_pemalloc()
143 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_MALLOC_AMOUNT:STAT_MEM_EMALLOC_AMOUNT; in _mysqlnd_pemalloc()
192 static void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pecalloc()
197 …zend_long * threshold = persistent? &MYSQLND_G(debug_calloc_fail_threshold):&MYSQLND_G(debug_ecall… in _mysqlnd_pecalloc()
207 ret = pecalloc_rel(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
212 ret = pecalloc_rel(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
218 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_CALLOC_COUNT:STAT_MEM_ECALLOC_COUNT; in _mysqlnd_pecalloc()
219 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_CALLOC_AMOUNT:STAT_MEM_ECALLOC_AMOUNT; in _mysqlnd_pecalloc()
268 static void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_perealloc()
274 …zend_long * threshold = persistent? &MYSQLND_G(debug_realloc_fail_threshold):&MYSQLND_G(debug_erea… in _mysqlnd_perealloc()
281 …C_INF_FMT("ptr=%p old_size=%lu new_size=%lu persistent=%u", ptr, old_size, new_size, persistent); in _mysqlnd_perealloc()
286 ret = perealloc_rel(REAL_PTR(ptr), REAL_SIZE(new_size), persistent); in _mysqlnd_perealloc()
291 …C_INF_FMT("ptr=%p old_size=%lu new_size=%lu persistent=%u", ptr, old_size, new_size, persistent); in _mysqlnd_perealloc()
292 ret = perealloc_rel(REAL_PTR(ptr), REAL_SIZE(new_size), persistent); in _mysqlnd_perealloc()
298 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_REALLOC_COUNT:STAT_MEM_EREALLOC_COUNT; in _mysqlnd_perealloc()
299 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_REALLOC_AMOUNT:STAT_MEM_EREALLOC_AMOUNT; in _mysqlnd_perealloc()
340 static void _mysqlnd_pefree(void *ptr, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pefree()
352 TRACE_ALLOC_INF_FMT("ptr=%p persistent=%u", ptr, persistent); in _mysqlnd_pefree()
359 pefree_rel(REAL_PTR(ptr), persistent); in _mysqlnd_pefree()
363 MYSQLND_INC_GLOBAL_STATISTIC_W_VALUE2(persistent? STAT_MEM_FREE_COUNT:STAT_MEM_EFREE_COUNT, 1, in _mysqlnd_pefree()
364 persistent? STAT_MEM_FREE_AMOUNT:STAT_MEM_EFREE_AMOUNT, free_amount); in _mysqlnd_pefree()
513 static char * _mysqlnd_pememdup(const char * const ptr, size_t length, zend_bool persistent MYSQLND… in _mysqlnd_pememdup()
527 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pememdup()
535 MYSQLND_INC_GLOBAL_STATISTIC(persistent? STAT_MEM_DUP_COUNT : STAT_MEM_EDUP_COUNT); in _mysqlnd_pememdup()
544 static char * _mysqlnd_pestrndup(const char * const ptr, size_t length, zend_bool persistent MYSQLN… in _mysqlnd_pestrndup()
558 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pestrndup()
571 MYSQLND_INC_GLOBAL_STATISTIC(persistent? STAT_MEM_STRNDUP_COUNT : STAT_MEM_ESTRNDUP_COUNT); in _mysqlnd_pestrndup()
585 static char * _mysqlnd_pestrdup(const char * const ptr, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_pestrdup()
603 ret = pemalloc_rel(ZSTR_LEN(tmp_str.s) + sizeof(size_t), persistent); in _mysqlnd_pestrdup()
608 MYSQLND_INC_GLOBAL_STATISTIC(persistent? STAT_MEM_STRDUP_COUNT : STAT_MEM_ESTRDUP_COUNT); in _mysqlnd_pestrdup()
661 static void * mysqlnd_zend_mm_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pemalloc()
663 return pemalloc_rel(size, persistent); in mysqlnd_zend_mm_pemalloc()
677 static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLN… in mysqlnd_zend_mm_pecalloc()
679 return pecalloc_rel(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc()
693 static void * mysqlnd_zend_mm_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_ME… in mysqlnd_zend_mm_perealloc()
695 return perealloc_rel(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc()
709 static void mysqlnd_zend_mm_pefree(void * ptr, zend_bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pefree()
711 pefree_rel(ptr, persistent); in mysqlnd_zend_mm_pefree()
749 static char * mysqlnd_zend_mm_pememdup(const char * const ptr, size_t length, zend_bool persistent in mysqlnd_zend_mm_pememdup()
751 char * dest = pemalloc_rel(length, persistent); in mysqlnd_zend_mm_pememdup()
761 static char * mysqlnd_zend_mm_pestrndup(const char * const ptr, size_t length, zend_bool persistent in mysqlnd_zend_mm_pestrndup()
763 return persistent? zend_strndup(ptr, length ) : estrndup_rel(ptr, length); in mysqlnd_zend_mm_pestrndup()
769 static char * mysqlnd_zend_mm_pestrdup(const char * const ptr, zend_bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pestrdup()
771 return pestrdup_rel(ptr, persistent); in mysqlnd_zend_mm_pestrdup()