Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 84) sorted by relevance

1234

/php-src/ext/dom/lexbor/lexbor/core/
H A Dmem.c19 if (mem == NULL) { in lexbor_mem_init()
30 mem->chunk = lexbor_mem_chunk_make(mem, mem->chunk_min_size); in lexbor_mem_init()
36 mem->chunk_first = mem->chunk; in lexbor_mem_init()
46 if (mem == NULL) { in lexbor_mem_clean()
64 mem->chunk = mem->chunk_first; in lexbor_mem_clean()
94 return mem; in lexbor_mem_destroy()
165 if ((mem->chunk->length + length) > mem->chunk->size) { in lexbor_mem_alloc()
170 mem->chunk->next = lexbor_mem_chunk_make(mem, length); in lexbor_mem_alloc()
175 mem->chunk->next->prev = mem->chunk; in lexbor_mem_alloc()
176 mem->chunk = mem->chunk->next; in lexbor_mem_alloc()
[all …]
H A Dmem.h47 lexbor_mem_clean(lexbor_mem_t *mem);
60 lexbor_mem_chunk_init(lexbor_mem_t *mem,
67 lexbor_mem_chunk_destroy(lexbor_mem_t *mem,
85 lexbor_mem_current_length(lexbor_mem_t *mem) in lexbor_mem_current_length() argument
87 return mem->chunk->length; in lexbor_mem_current_length()
91 lexbor_mem_current_size(lexbor_mem_t *mem) in lexbor_mem_current_size() argument
93 return mem->chunk->size; in lexbor_mem_current_size()
97 lexbor_mem_chunk_length(lexbor_mem_t *mem) in lexbor_mem_chunk_length() argument
99 return mem->chunk_length; in lexbor_mem_chunk_length()
125 lexbor_mem_current_size_noi(lexbor_mem_t *mem);
[all …]
H A Dmraw.c51 mraw->mem = lexbor_mem_create(); in lexbor_mraw_init()
59 ASAN_POISON_MEMORY_REGION(mraw->mem->chunk->data, mraw->mem->chunk->size); in lexbor_mraw_init()
79 lexbor_mem_clean(mraw->mem); in lexbor_mraw_clean()
93 mraw->mem = lexbor_mem_destroy(mraw->mem, true); in lexbor_mraw_destroy()
107 lexbor_mem_t *mem = mraw->mem; in lexbor_mraw_mem_alloc() local
113 if ((mem->chunk->length + length) > mem->chunk->size) { in lexbor_mraw_mem_alloc()
164 mem->chunk = chunk->next; in lexbor_mraw_mem_alloc()
166 mem->chunk_length++; in lexbor_mraw_mem_alloc()
169 ASAN_POISON_MEMORY_REGION(mem->chunk->data, mem->chunk->size); in lexbor_mraw_mem_alloc()
173 data = &mem->chunk->data[ mem->chunk->length ]; in lexbor_mraw_mem_alloc()
[all …]
H A Ddobject.c40 dobject->mem = lexbor_mem_create(); in lexbor_dobject_init()
42 status = lexbor_mem_init(dobject->mem, in lexbor_dobject_init()
49 ASAN_POISON_MEMORY_REGION(dobject->mem->chunk->data, in lexbor_dobject_init()
50 dobject->mem->chunk->size); in lexbor_dobject_init()
69 lexbor_mem_clean(dobject->mem); in lexbor_dobject_clean()
80 dobject->mem = lexbor_mem_destroy(dobject->mem, true); in lexbor_dobject_destroy()
108 data = lexbor_mem_alloc(dobject->mem, dobject->struct_size); in lexbor_dobject_alloc()
163 chunk = dobject->mem->chunk_first; in lexbor_dobject_by_absolute_position()
165 chunk_idx = chunk_pos / dobject->mem->chunk_min_size; in lexbor_dobject_by_absolute_position()
/php-src/sapi/fpm/fpm/
H A Dfpm_shm.c20 void *mem; in fpm_shm_alloc() local
22 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); in fpm_shm_alloc()
25 if (mem == MAP_FAILED) { in fpm_shm_alloc()
31 if (!mem) { in fpm_shm_alloc()
37 return mem; in fpm_shm_alloc()
41 int fpm_shm_free(void *mem, size_t size) /* {{{ */ in fpm_shm_free() argument
43 if (!mem) { in fpm_shm_free()
48 if (munmap(mem, size) == -1) { in fpm_shm_free()
H A Dfpm_scoreboard.c268 void *mem; in fpm_scoreboard_copy() local
278 mem = malloc(scoreboard_size + scoreboard_nprocs_size); in fpm_scoreboard_copy()
280 mem = malloc(sizeof(struct fpm_scoreboard_s)); in fpm_scoreboard_copy()
283 if (!mem) { in fpm_scoreboard_copy()
288 scoreboard_copy = mem; in fpm_scoreboard_copy()
292 free(mem); in fpm_scoreboard_copy()
300 mem += scoreboard_size; in fpm_scoreboard_copy()
302 for (i = 0; i < scoreboard->nprocs; i++, mem += sizeof(struct fpm_scoreboard_proc_s)) { in fpm_scoreboard_copy()
/php-src/sapi/phpdbg/
H A Dphpdbg_sigsafe.c13 return (void *) (((size_t) PHPDBG_G(sigsafe_mem).mem & ~(alignment - 1)) + alignment); in ZEND_EXTERN_MODULE_GLOBALS()
31 phpdbg_signal_safe_mem *mem = &PHPDBG_G(sigsafe_mem); in phpdbg_set_sigsafe_mem() local
39 mem->mem = buffer; in phpdbg_set_sigsafe_mem()
40 mem->allocated = 0; in phpdbg_set_sigsafe_mem()
42 mem->heap = zend_mm_startup_ex(&phpdbg_handlers, NULL, 0); in phpdbg_set_sigsafe_mem()
44 mem->old_heap = zend_mm_set_heap(mem->heap); in phpdbg_set_sigsafe_mem()
53 PHPDBG_G(sigsafe_mem).mem = NULL; in phpdbg_clear_sigsafe_mem()
57 return !!PHPDBG_G(sigsafe_mem).mem; in phpdbg_active_sigsafe_mem()
H A Dphpdbg_sigsafe.h9 char *mem; member
19 void phpdbg_set_sigsafe_mem(char *mem);
/php-src/ext/sysvshm/tests/
H A Dgh16591.phpt10 global $mem;
11 shm_detach($mem);
16 $mem = shm_attach(1);
18 shm_put_var($mem, 1, new C);
/php-src/ext/opcache/tests/jit/
H A Dinc_005.phpt16 var_dump(++$x); // mem -> mem, mem
H A Dinc_013.phpt16 var_dump(++$x); // mem -> mem, mem
H A Dinc_001.phpt16 ++$x; // mem -> mem
H A Dinc_009.phpt16 ++$x; // mem -> mem
H A Dinc_006.phpt15 var_dump(++$x); // reg -> mem, mem
H A Dinc_014.phpt15 var_dump(++$x); // reg -> mem, mem
/php-src/ext/openssl/tests/
H A Dopenssl_password_compat.phpt22 foreach([1, 2] as $mem) {
25 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST / $mem,
30 $pass = "secret$mem$time$algo";
33 …_str($pass, PASSWORD_ARGON2_DEFAULT_TIME_COST / $time, PASSWORD_ARGON2_DEFAULT_MEMORY_COST / $mem);
H A Dopenssl_password.phpt17 foreach([1, 2] as $mem) {
20 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST / $mem,
25 $pass = "secret$mem$time$algo";
H A Dopenssl_password_compat2.phpt22 foreach([1, 2] as $mem) {
25 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST / $mem,
30 $pass = "secret$mem$time$algo";
/php-src/ext/dom/lexbor/lexbor/css/selectors/
H A Dselector.c20 lxb_css_memory_t *mem);
28 lxb_css_memory_t *mem);
31 lxb_css_memory_t *mem);
34 lxb_css_memory_t *mem);
169 lxb_css_selector_list_create(lxb_css_memory_t *mem) in lxb_css_selector_list_create() argument
173 list = lexbor_dobject_calloc(mem->objs); in lxb_css_selector_list_create()
178 list->memory = mem; in lxb_css_selector_list_create()
241 lxb_css_memory_t *mem) in lxb_css_selector_destroy_undef() argument
248 lxb_css_memory_t *mem) in lxb_css_selector_destroy_any() argument
261 lxb_css_memory_t *mem) in lxb_css_selector_destroy_id() argument
[all …]
/php-src/ext/dom/lexbor/lexbor/css/
H A Ddeclaration.h20 lxb_css_memory_t *mem);
30 lxb_css_declaration_list_parse(lxb_css_parser_t *parser, lxb_css_memory_t *mem,
/php-src/ext/zip/tests/
H A Doo_addfile_proc.phpt23 if (!$zip->addFile('/proc/meminfo', 'mem.txt', 0, ZipArchive::LENGTH_UNCHECKED)) {
39 var_dump(strlen($zip->getFromName('mem.txt')) > 0);
46 1 mem.txt
/php-src/Zend/tests/
H A Dbug44069.phpt10 // $newstring .= $string; //This uses an expected amount of mem.
11 $newstring = $newstring . $string; //This uses very much mem.
/php-src/ext/pdo_pgsql/tests/
H A Dgh15287.phpt48 echo "=== mem test ===\n";
79 $mem = $stmt->getAttribute(PDO::PGSQL_ATTR_RESULT_MEMORY_SIZE);
82 $mem = $lazy ? 0 : 1;
85 echo "ResultSet is $mem bytes long\n";
87 …echo "ResultSet is " . ($mem > $mem0 ? "longer" : ($mem == $mem0 ? "not shorter" : ($mem <= $mem0 …
89 $mem0 = $mem;
144 === mem test ===
/php-src/Zend/
H A Dzend_extensions.c381 char *mem; member
394 size_t size = extension->op_array_persist(data->op_array, data->mem); in zend_extension_op_array_persist_handler()
396 data->mem = (void*)((char*)data->mem + size); in zend_extension_op_array_persist_handler()
409 data.mem = NULL; in zend_extensions_op_array_persist_calc()
416 ZEND_API size_t zend_extensions_op_array_persist(zend_op_array *op_array, void *mem) in zend_extensions_op_array_persist() argument
423 data.mem = mem; in zend_extensions_op_array_persist()
/php-src/ext/opcache/jit/ir/
H A Dir_x86.dasc41 ir_mem mem;
46 mem.v =
48 mem =
54 return mem;
3240 ir_mem mem;
3252 return mem;
4044 ir_mem mem;
4358 ir_mem mem;
4452 ir_mem mem;
4550 ir_mem mem;
[all …]

Completed in 45 milliseconds

1234