Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 14 of 14) sorted by relevance

/PHP-8.1/ext/mysqlnd/
H A Dmysqlnd_result_meta.c286 size_t alloc_size = sizeof(MYSQLND_RES_METADATA) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_meta_init() local
290 ret = result->memory_pool->get_chunk(result->memory_pool, alloc_size); in mysqlnd_result_meta_init()
291 memset(ret, 0, alloc_size); in mysqlnd_result_meta_init()
296 alloc_size = (field_count + 1) * sizeof(MYSQLND_FIELD); in mysqlnd_result_meta_init()
297 ret->fields = result->memory_pool->get_chunk(result->memory_pool, alloc_size); in mysqlnd_result_meta_init()
298 memset(ret->fields, 0, alloc_size); in mysqlnd_result_meta_init()
H A Dmysqlnd_driver.c186 const size_t alloc_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *); in MYSQLND_METHOD() local
187 MYSQLND_STMT * ret = mnd_ecalloc(1, alloc_size); in MYSQLND_METHOD()
272 …const size_t alloc_size = sizeof(MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY) + mysqlnd_plugin_count(… in MYSQLND_METHOD() local
273 MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY *ret = mnd_pecalloc(1, alloc_size, persistent); in MYSQLND_METHOD()
H A Dmysqlnd_result.c1108 const size_t alloc_size = sizeof(MYSQLND_RES) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_init() local
1119 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_init()
1120 memset(ret, 0, alloc_size); in mysqlnd_result_init()
1140 const size_t alloc_size = sizeof(MYSQLND_RES_UNBUFFERED) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_unbuffered_init() local
1146 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_unbuffered_init()
1147 memset(ret, 0, alloc_size); in mysqlnd_result_unbuffered_init()
1175 const size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_buffered_init() local
1181 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_buffered_init()
1182 memset(ret, 0, alloc_size); in mysqlnd_result_buffered_init()
/PHP-8.1/build/
H A Dax_gcc_func_attribute.m428 # alloc_size
95 [alloc_size], [
/PHP-8.1/Zend/
H A Dzend_portability.h203 #if ZEND_GCC_VERSION >= 4003 || __has_attribute(alloc_size)
204 # define ZEND_ATTRIBUTE_ALLOC_SIZE(X) __attribute__ ((alloc_size(X)))
205 # define ZEND_ATTRIBUTE_ALLOC_SIZE2(X,Y) __attribute__ ((alloc_size(X,Y)))
H A Dzend_fibers.c187 const size_t alloc_size = stack_size + ZEND_FIBER_GUARD_PAGES * page_size; in zend_fiber_stack_allocate() local
190 pointer = VirtualAlloc(0, alloc_size, MEM_COMMIT, PAGE_READWRITE); in zend_fiber_stack_allocate()
213 …pointer = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, … in zend_fiber_stack_allocate()
223 munmap(pointer, alloc_size); in zend_fiber_stack_allocate()
H A Dzend_inheritance.c2581 size_t alloc_size; in zend_lazy_class_load() local
2587 alloc_size = sizeof(zend_op_array) + sizeof(void *); in zend_lazy_class_load()
2589 alloc_size += sizeof(HashTable *); in zend_lazy_class_load()
2591 new_op_array = zend_arena_alloc(&CG(arena), alloc_size); in zend_lazy_class_load()
/PHP-8.1/ext/sockets/
H A Dconversions.c111 static inline void *accounted_emalloc(size_t alloc_size, ser_context *ctx) in accounted_emalloc() argument
113 void *ret = emalloc(alloc_size); in accounted_emalloc()
117 static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx) in accounted_ecalloc() argument
119 void *ret = ecalloc(nmemb, alloc_size); in accounted_ecalloc()
123 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_cont… in accounted_safe_ecalloc() argument
125 void *ret = safe_emalloc(nmemb, alloc_size, offset); in accounted_safe_ecalloc()
126 memset(ret, '\0', nmemb * alloc_size + offset); in accounted_safe_ecalloc()
/PHP-8.1/sapi/cgi/
H A Dcgi_main.c1590 size_t alloc_size = sizeof(buf); local
1599 if (var_len >= alloc_size) {
1600 alloc_size = var_len + 64;
1601 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
1613 if (var_len >= alloc_size) {
1614 alloc_size = var_len + 64;
1615 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
/PHP-8.1/sapi/litespeed/
H A Dlsapi_main.c219 size_t alloc_size = sizeof(buf); in litespeed_php_import_environment_variables() local
245 if (nlen >= alloc_size) { in litespeed_php_import_environment_variables()
246 alloc_size = nlen + 64; in litespeed_php_import_environment_variables()
247 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in litespeed_php_import_environment_variables()
/PHP-8.1/ext/spl/
H A Dspl_heap.c285 size_t alloc_size = heap->max_size * heap->elem_size; in spl_ptr_heap_insert() local
287 heap->elements = erealloc(heap->elements, 2 * alloc_size); in spl_ptr_heap_insert()
288 memset((char *) heap->elements + alloc_size, 0, alloc_size); in spl_ptr_heap_insert()
/PHP-8.1/ext/date/lib/
H A Dparse_date.re356 size_t alloc_size = *count ? (*count * 2) : 1;
358 *messages = timelib_realloc(*messages, alloc_size * sizeof(timelib_error_message));
H A Dparse_date.c358 size_t alloc_size = *count ? (*count * 2) : 1; in alloc_error_message() local
360 *messages = timelib_realloc(*messages, alloc_size * sizeof(timelib_error_message)); in alloc_error_message()
/PHP-8.1/ext/ffi/
H A Dffi.c6768 _(alloc_size) \

Completed in 111 milliseconds