Lines Matching refs:persistent

89 static void * _mysqlnd_pemalloc(size_t size, bool persistent MYSQLND_MEM_D)  in _mysqlnd_pemalloc()
94 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
96 TRACE_ALLOC_INF_FMT("size=%zu ptr=%p persistent=%u", size, ret, persistent); in _mysqlnd_pemalloc()
99 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_MALLOC_COUNT:STAT_MEM_EMALLOC_COUNT; in _mysqlnd_pemalloc()
100 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_MALLOC_AMOUNT:STAT_MEM_EMALLOC_AMOUNT; in _mysqlnd_pemalloc()
131 static void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, bool persistent MYSQLND_MEM_D) in _mysqlnd_pecalloc()
136 ret = pecalloc_rel(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
141 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_CALLOC_COUNT:STAT_MEM_ECALLOC_COUNT; in _mysqlnd_pecalloc()
142 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_CALLOC_AMOUNT:STAT_MEM_ECALLOC_AMOUNT; in _mysqlnd_pecalloc()
173 static void * _mysqlnd_perealloc(void *ptr, size_t new_size, bool persistent MYSQLND_MEM_D) in _mysqlnd_perealloc()
179 …C_INF_FMT("ptr=%p old_size=%zu new_size=%zu persistent=%u", ptr, old_size, new_size, persistent); in _mysqlnd_perealloc()
180 ret = perealloc_rel(REAL_PTR(ptr), REAL_SIZE(new_size), persistent); in _mysqlnd_perealloc()
185 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_REALLOC_COUNT:STAT_MEM_EREALLOC_COUNT; in _mysqlnd_perealloc()
186 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_REALLOC_AMOUNT:STAT_MEM_EREALLOC_AMOUNT; in _mysqlnd_perealloc()
227 static void _mysqlnd_pefree(void *ptr, bool persistent MYSQLND_MEM_D) in _mysqlnd_pefree()
239 TRACE_ALLOC_INF_FMT("ptr=%p persistent=%u", ptr, persistent); in _mysqlnd_pefree()
246 pefree_rel(REAL_PTR(ptr), persistent); in _mysqlnd_pefree()
250 MYSQLND_INC_GLOBAL_STATISTIC_W_VALUE2(persistent? STAT_MEM_FREE_COUNT:STAT_MEM_EFREE_COUNT, 1, in _mysqlnd_pefree()
251 persistent? STAT_MEM_FREE_AMOUNT:STAT_MEM_EFREE_AMOUNT, free_amount); in _mysqlnd_pefree()
259 static char * _mysqlnd_pememdup(const char * const ptr, size_t length, bool persistent MYSQLND_MEM_… in _mysqlnd_pememdup()
273 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pememdup()
281 MYSQLND_INC_GLOBAL_STATISTIC(persistent? STAT_MEM_DUP_COUNT : STAT_MEM_EDUP_COUNT); in _mysqlnd_pememdup()
290 static char * _mysqlnd_pestrndup(const char * const ptr, size_t length, bool persistent MYSQLND_MEM… in _mysqlnd_pestrndup()
304 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pestrndup()
317 MYSQLND_INC_GLOBAL_STATISTIC(persistent? STAT_MEM_STRNDUP_COUNT : STAT_MEM_ESTRNDUP_COUNT); in _mysqlnd_pestrndup()
330 static char * _mysqlnd_pestrdup(const char * const ptr, bool persistent MYSQLND_MEM_D) in _mysqlnd_pestrdup()
348 ret = pemalloc_rel(REAL_SIZE(ZSTR_LEN(tmp_str.s)), persistent); in _mysqlnd_pestrdup()
353 MYSQLND_INC_GLOBAL_STATISTIC(persistent? STAT_MEM_STRDUP_COUNT : STAT_MEM_ESTRDUP_COUNT); in _mysqlnd_pestrdup()
373 static void * mysqlnd_zend_mm_pemalloc(size_t size, bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pemalloc()
375 return pemalloc_rel(size, persistent); in mysqlnd_zend_mm_pemalloc()
389 static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_t size, bool persistent MYSQLND_MEM… in mysqlnd_zend_mm_pecalloc()
391 return pecalloc_rel(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc()
405 static void * mysqlnd_zend_mm_perealloc(void *ptr, size_t new_size, bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_perealloc()
407 return perealloc_rel(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc()
421 static void mysqlnd_zend_mm_pefree(void * ptr, bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pefree()
423 pefree_rel(ptr, persistent); in mysqlnd_zend_mm_pefree()
429 static char * mysqlnd_zend_mm_pememdup(const char * const ptr, size_t length, bool persistent MYSQL… in mysqlnd_zend_mm_pememdup()
431 char * dest = pemalloc_rel(length, persistent); in mysqlnd_zend_mm_pememdup()
441 static char * mysqlnd_zend_mm_pestrndup(const char * const ptr, size_t length, bool persistent MYSQ… in mysqlnd_zend_mm_pestrndup()
443 return persistent? zend_strndup(ptr, length ) : estrndup_rel(ptr, length); in mysqlnd_zend_mm_pestrndup()
449 static char * mysqlnd_zend_mm_pestrdup(const char * const ptr, bool persistent MYSQLND_MEM_D) in mysqlnd_zend_mm_pestrdup()
451 return pestrdup_rel(ptr, persistent); in mysqlnd_zend_mm_pestrdup()