Home
last modified time | relevance | path

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

/php-src/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.c191 const size_t alloc_size = sizeof(MYSQLND_STMT) + mysqlnd_plugin_count() * sizeof(void *); in MYSQLND_METHOD() local
192 MYSQLND_STMT * ret = mnd_ecalloc(1, alloc_size); in MYSQLND_METHOD()
271 …const size_t alloc_size = sizeof(MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY) + mysqlnd_plugin_count(… in MYSQLND_METHOD() local
272 MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY *ret = mnd_pecalloc(1, alloc_size, persistent); in MYSQLND_METHOD()
H A Dmysqlnd_result.c1113 const size_t alloc_size = sizeof(MYSQLND_RES) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_init() local
1124 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_init()
1125 memset(ret, 0, alloc_size); in mysqlnd_result_init()
1145 const size_t alloc_size = sizeof(MYSQLND_RES_UNBUFFERED) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_unbuffered_init() local
1151 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_unbuffered_init()
1152 memset(ret, 0, alloc_size); in mysqlnd_result_unbuffered_init()
1180 const size_t alloc_size = sizeof(MYSQLND_RES_BUFFERED) + mysqlnd_plugin_count() * sizeof(void *); in mysqlnd_result_buffered_init() local
1186 ret = pool->get_chunk(pool, alloc_size); in mysqlnd_result_buffered_init()
1187 memset(ret, 0, alloc_size); in mysqlnd_result_buffered_init()
/php-src/Zend/
H A Dzend_fibers.c215 const size_t alloc_size = stack_size + ZEND_FIBER_GUARD_PAGES * page_size; in zend_fiber_stack_allocate() local
218 pointer = VirtualAlloc(0, alloc_size, MEM_COMMIT, PAGE_READWRITE); in zend_fiber_stack_allocate()
241 …pointer = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, … in zend_fiber_stack_allocate()
251 (void) madvise(pointer, alloc_size, MADV_NOHUGEPAGE); in zend_fiber_stack_allocate()
254 zend_mmap_set_name(pointer, alloc_size, "zend_fiber_stack"); in zend_fiber_stack_allocate()
259 munmap(pointer, alloc_size); in zend_fiber_stack_allocate()
H A Dzend_portability.h232 #if ZEND_GCC_VERSION >= 4003 || __has_attribute(alloc_size)
233 # define ZEND_ATTRIBUTE_ALLOC_SIZE(X) __attribute__ ((alloc_size(X)))
234 # define ZEND_ATTRIBUTE_ALLOC_SIZE2(X,Y) __attribute__ ((alloc_size(X,Y)))
/php-src/build/
H A Dax_gcc_func_attribute.m428 # alloc_size
95 [alloc_size], [
/php-src/sapi/cgi/
H A Dcgi_main.c1588 size_t alloc_size = sizeof(buf); local
1597 if (var_len >= alloc_size) {
1598 alloc_size = var_len + 64;
1599 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
1611 if (var_len >= alloc_size) {
1612 alloc_size = var_len + 64;
1613 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
/php-src/ext/sockets/
H A Dconversions.c119 static inline void *accounted_emalloc(size_t alloc_size, ser_context *ctx) in accounted_emalloc() argument
121 void *ret = emalloc(alloc_size); in accounted_emalloc()
125 static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx) in accounted_ecalloc() argument
127 void *ret = ecalloc(nmemb, alloc_size); in accounted_ecalloc()
131 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_cont… in accounted_safe_ecalloc() argument
133 void *ret = safe_emalloc(nmemb, alloc_size, offset); in accounted_safe_ecalloc()
134 memset(ret, '\0', nmemb * alloc_size + offset); in accounted_safe_ecalloc()
/php-src/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-src/ext/spl/
H A Dspl_heap.c274 size_t alloc_size = heap->max_size * heap->elem_size; in spl_ptr_heap_insert() local
276 heap->elements = safe_erealloc(heap->elements, 2, alloc_size, 0); in spl_ptr_heap_insert()
277 memset((char *) heap->elements + alloc_size, 0, alloc_size); in spl_ptr_heap_insert()
/php-src/ext/date/lib/
H A Dparse_date.re357 size_t alloc_size = *count ? (*count * 2) : 1;
359 *messages = timelib_realloc(*messages, alloc_size * sizeof(timelib_error_message));
H A Dparse_date.c359 size_t alloc_size = *count ? (*count * 2) : 1; in alloc_error_message() local
361 *messages = timelib_realloc(*messages, alloc_size * sizeof(timelib_error_message)); in alloc_error_message()
/php-src/ext/ffi/
H A Dffi.c6867 _(alloc_size) \

Completed in 97 milliseconds