Home
last modified time | relevance | path

Searched refs:old_size (Results 1 – 6 of 6) sorted by relevance

/PHP-7.3/Zend/
H A Dzend_alloc.c811 return (zend_mm_mmap_fixed((char*)addr + old_size, new_size - old_size) != NULL);
1464 size_t old_size; local
1488 if (new_size == old_size) {
1495 } else if (new_size < old_size) {
1502 heap->size -= old_size - new_size;
1533 heap->size += new_size - old_size;
1552 size_t old_size; local
1584 if (size <= old_size) {
1605 copy_size = use_copy_size ? MIN(old_size, copy_size) : old_size;
1634 if (new_size == old_size) {
[all …]
H A Dzend_alloc.h297 typedef int (*zend_mm_chunk_truncate_t)(zend_mm_storage *storage, void *chunk, size_t old_size, s…
298 typedef int (*zend_mm_chunk_extend_t)(zend_mm_storage *storage, void *chunk, size_t old_size, siz…
H A Dzend_ast.c34 static inline void *zend_ast_realloc(void *old, size_t old_size, size_t new_size) { in zend_ast_realloc() argument
36 memcpy(new, old, old_size); in zend_ast_realloc()
/PHP-7.3/ext/mysqlnd/
H A Dmysqlnd_block_alloc.c119 mysqlnd_mempool_resize_chunk(MYSQLND_MEMORY_POOL * pool, void * ptr, size_t old_size, size_t size) in mysqlnd_mempool_resize_chunk() argument
133 memcpy(new_ptr, ptr, MIN(old_size, size)); in mysqlnd_mempool_resize_chunk()
H A Dmysqlnd_alloc.c249 …size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : … in _mysqlnd_erealloc() local
261 TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu, new_size=%lu", ptr, old_size, new_size); in _mysqlnd_erealloc()
290 …size_t old_size = collect_memory_statistics && ptr? *(size_t *) (((char*)ptr) - sizeof(size_t)) : … in _mysqlnd_perealloc() local
302 …TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu new_size=%lu persistent=%u", ptr, old_size, new_size, p… in _mysqlnd_perealloc()
H A Dmysqlnd_structs.h60 void* (*resize_chunk)(MYSQLND_MEMORY_POOL * pool, void * ptr, size_t old_size, size_t size);

Completed in 44 milliseconds