Lines Matching refs:new_size

228 static void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D)  in _mysqlnd_erealloc()
241 TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu, new_size=%lu", ptr, old_size, new_size); in _mysqlnd_erealloc()
246 ret = erealloc_rel(REAL_PTR(ptr), REAL_SIZE(new_size)); in _mysqlnd_erealloc()
251 TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu, new_size=%lu", ptr, old_size, new_size); in _mysqlnd_erealloc()
252 ret = erealloc_rel(REAL_PTR(ptr), REAL_SIZE(new_size)); in _mysqlnd_erealloc()
257 *(size_t *) ret = new_size; in _mysqlnd_erealloc()
258 …QLND_INC_GLOBAL_STATISTIC_W_VALUE2(STAT_MEM_EREALLOC_COUNT, 1, STAT_MEM_EREALLOC_AMOUNT, new_size); in _mysqlnd_erealloc()
266 static void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) in _mysqlnd_perealloc() argument
279 …TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu new_size=%lu persistent=%u", ptr, old_size, new_size, p… in _mysqlnd_perealloc()
284 ret = perealloc_rel(REAL_PTR(ptr), REAL_SIZE(new_size), persistent); in _mysqlnd_perealloc()
289 …TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu new_size=%lu persistent=%u", ptr, old_size, new_size, p… in _mysqlnd_perealloc()
290 ret = perealloc_rel(REAL_PTR(ptr), REAL_SIZE(new_size), persistent); in _mysqlnd_perealloc()
298 *(size_t *) ret = new_size; in _mysqlnd_perealloc()
299 MYSQLND_INC_GLOBAL_STATISTIC_W_VALUE2(s1, 1, s2, new_size); in _mysqlnd_perealloc()
440 static void * _mysqlnd_realloc(void *ptr, size_t new_size MYSQLND_MEM_D) in _mysqlnd_realloc()
452 TRACE_ALLOC_INF_FMT("ptr=%p new_size=%lu ", new_size, ptr); in _mysqlnd_realloc()
458 ret = realloc(REAL_PTR(ptr), REAL_SIZE(new_size)); in _mysqlnd_realloc()
463 TRACE_ALLOC_INF_FMT("ptr=%p new_size=%lu ", new_size, ptr); in _mysqlnd_realloc()
465 ret = realloc(REAL_PTR(ptr), REAL_SIZE(new_size)); in _mysqlnd_realloc()
471 *(size_t *) ret = new_size; in _mysqlnd_realloc()
472 …YSQLND_INC_GLOBAL_STATISTIC_W_VALUE2(STAT_MEM_REALLOC_COUNT, 1, STAT_MEM_REALLOC_AMOUNT, new_size); in _mysqlnd_realloc()
683 static void * mysqlnd_zend_mm_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D) in mysqlnd_zend_mm_erealloc()
685 return erealloc_rel(ptr, new_size); in mysqlnd_zend_mm_erealloc()
691 static void * mysqlnd_zend_mm_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_ME… in mysqlnd_zend_mm_perealloc() argument
693 return perealloc_rel(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc()
731 static void * mysqlnd_zend_mm_realloc(void * ptr, size_t new_size MYSQLND_MEM_D) in mysqlnd_zend_mm_realloc()
733 return realloc(ptr, new_size); in mysqlnd_zend_mm_realloc()