Home
last modified time | relevance | path

Searched refs:ZCG (Results 1 – 12 of 12) sorted by relevance

/PHP-8.0/ext/opcache/
H A DZendAccelerator.c182 if (ZCG(cwd)) { in ZEND_FUNCTION()
187 if (ZCG(cwd)) { in ZEND_FUNCTION()
198 if (ZCG(cwd)) { in accel_getcwd()
199 return ZCG(cwd); in accel_getcwd()
209 return ZCG(cwd); in accel_getcwd()
1379 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in store_script_in_file_cache()
1383 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 7L) & ~7L); in store_script_in_file_cache()
1496 if (ZCG(mem)) { in cache_script_in_shared_memory()
1497 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in cache_script_in_shared_memory()
1671 ZCG(warnings) = erealloc(ZCG(warnings), sizeof(zend_recorded_warning) * ZCG(num_warnings)); in persistent_error_cb()
[all …]
H A Dzend_accelerator_module.c51 if (ZCG(accel_directives).restrict_api && *ZCG(accel_directives).restrict_api) { in validate_api_restriction()
128 ZCG(accelerator_enabled) = 0; in ZEND_INI_MH()
320 if (ZCG(accel_directives).validate_timestamps) {
385 if (ZCG(enabled) && accel_startup_ok && ZCG(accel_directives).file_override_enabled) {
419 if (ZCG(accelerator_enabled) || file_cache_only) {
424 if (ZCG(enabled) && accel_startup_ok && ZCG(accel_directives).optimization_level) {
434 if (ZCG(accel_directives).file_cache) {
459 if (ZCG(enabled)) {
556 if (ZCG(accel_directives).validate_timestamps) {
594 if (ZCG(accel_directives).file_cache) {
[all …]
H A Dzend_accelerator_debug.c38 if (type <= ZCG(accel_directives).log_verbosity_level) { in zend_accel_error()
44 if (!ZCG(accel_directives).error_log || in zend_accel_error()
45 !*ZCG(accel_directives).error_log || in zend_accel_error()
46 strcmp(ZCG(accel_directives).error_log, "stderr") == 0) { in zend_accel_error()
50 fLog = fopen(ZCG(accel_directives).error_log, "a"); in zend_accel_error()
H A Dzend_shared_alloc.c170 if (ZCG(accel_directives).memory_model && ZCG(accel_directives).memory_model[0]) { in zend_shared_alloc_startup()
271 ZCG(locked) = 0; in zend_shared_alloc_startup()
342 if (!ZCG(locked)) { in zend_shared_alloc()
392 retval = ZCG(arena_mem); in _zend_shared_memdup()
393 ZCG(arena_mem) = (void*)(((char*)ZCG(arena_mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup()
395 retval = ZCG(mem); in _zend_shared_memdup()
396 ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup()
454 if (ZCG(locked)) { in zend_shared_alloc_safe_unlock()
493 ZCG(locked) = 1; in zend_shared_alloc_lock()
507 ZCG(locked) = 0; in zend_shared_alloc_unlock()
[all …]
H A Dzend_persist.c132 HT_SET_DATA_ADDR(ht, ZCG(mem)); in zend_hash_persist()
147 void *data = ZCG(mem); in zend_hash_persist()
415ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE(zend_extensions_op_array_persist(op_array, in zend_persist_op_array_ex()
615ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE(zend_extensions_op_array_persist(op_array, in zend_persist_op_array_ex()
640 ZCG(arena_mem) = (void*)(((char*)ZCG(arena_mem)) + ZEND_ALIGNED_SIZE(sizeof(void*))); in zend_persist_op_array()
695 if (ZCG(is_immutable_class)) { in zend_persist_class_method()
709 ZCG(arena_mem) = (void*)(((char*)ZCG(arena_mem)) + ZEND_ALIGNED_SIZE(sizeof(void*))); in zend_persist_class_method()
1174 script->mem = ZCG(mem); in zend_accel_script_persist()
1195 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in zend_accel_script_persist()
1200 script->arena_mem = ZCG(arena_mem) = ZCG(mem); in zend_accel_script_persist()
[all …]
H A Dzend_persist_calc.c35 if (ZCG(is_immutable_class)) { \
45 if (ZCG(current_persistent_script)->corrupted) { \
172 if (ZEND_TYPE_USES_ARENA(*type) && !ZCG(is_immutable_class)) { in zend_persist_type_calc()
296 if (ZCG(current_persistent_script)->corrupted) { in zend_persist_op_array_calc()
323 if (!ZCG(is_immutable_class)) { in zend_persist_class_method_calc()
342 if (ZCG(accel_directives).save_comments && prop->doc_comment) { in zend_persist_property_info_calc()
358 if (ZCG(accel_directives).save_comments && c->doc_comment) { in zend_persist_class_constant_calc()
401 ZCG(is_immutable_class) = in zend_persist_class_entry_calc()
405 !ZCG(current_persistent_script)->corrupted; in zend_persist_class_entry_calc()
563 ZCG(current_persistent_script) = new_persistent_script; in zend_accel_script_persist_calc()
[all …]
H A Dzend_accelerator_util_funcs.c38 ((void*)(ptr) >= ZCG(current_persistent_script)->arena_mem && \
39 …(void*)(ptr) < (void*)((char*)ZCG(current_persistent_script)->arena_mem + ZCG(current_persistent_s…
42 …(void*)(((char*)(ptr)) + ((char*)ZCG(arena_mem) - (char*)ZCG(current_persistent_script)->arena_mem…
539 } else if (UNEXPECTED(!ZCG(accel_directives).ignore_dups)) { in zend_accel_class_hash_copy()
576 } else if (UNEXPECTED(!ZCG(accel_directives).ignore_dups)) { in zend_accel_class_hash_copy_from_shm()
759 zend_hash_init(&ZCG(bind_hash), 10, NULL, NULL, 0); in zend_accel_load_script()
761 ZCG(current_persistent_script) = persistent_script; in zend_accel_load_script()
762 ZCG(arena_mem) = NULL; in zend_accel_load_script()
768 ZCG(arena_mem) = (void*)(((zend_uintptr_t)ZCG(arena_mem) + 63L) & ~63L); in zend_accel_load_script()
799 zend_hash_destroy(&ZCG(bind_hash)); in zend_accel_load_script()
[all …]
H A Dshared_alloc_win32.c142 if (ZCG(accel_directives).file_cache && ZCG(accel_directives).file_cache_fallback) { in zend_shared_alloc_reattach()
284 if (!ZCG(accel_directives).mmap_base || !*ZCG(accel_directives).mmap_base) { in create_segments()
287 char *s = ZCG(accel_directives).mmap_base; in create_segments()
H A DZendAccelerator.h309 # define ZCG(v) ZEND_TSRMG(accel_globals_id, zend_accel_globals *, v) macro
315 # define ZCG(v) (accel_globals.v)
344 if (ZCG(accel_directives).protect_memory) { \
351 if (ZCG(accel_directives).protect_memory) { \
H A Dzend_accelerator_hash.c90 hash_value ^= ZCG(root_hash); in zend_accel_hash_update()
149 hash_value ^= ZCG(root_hash); in zend_accel_hash_find_ex()
237 hash_value ^= ZCG(root_hash); in zend_accel_hash_unlink()
H A Dzend_file_cache.c256 ZCG(mem) = (void*)zend_string_realloc(
257 (zend_string*)ZCG(mem),
914 len = strlen(ZCG(accel_directives).file_cache);
916 memcpy(filename, ZCG(accel_directives).file_cache, len);
922 len = strlen(ZCG(accel_directives).file_cache);
1039 vec[2].iov_base = ZSTR_VAL((zend_string*)ZCG(mem));
1044 zend_string_release_ex((zend_string*)ZCG(mem), 0);
1058 zend_string_release_ex((zend_string*)ZCG(mem), 0);
1067 zend_string_release_ex((zend_string*)ZCG(mem), 0);
1704 if (ZCG(accel_directives).validate_timestamps &&
[all …]
/PHP-8.0/ext/opcache/jit/
H A Dzend_jit.c3633 …if (zend_jit_op_array_analyze2(op_array, script, &ssa, ZCG(accel_directives).optimization_level) !… in zend_real_jit_func()
3963 …if (zend_jit_op_array_analyze2(call_graph.op_arrays[i], script, &info->ssa, ZCG(accel_directives).… in zend_jit_script()

Completed in 52 milliseconds