Searched refs:ZCG (Results 1 – 11 of 11) sorted by relevance
/PHP-7.4/ext/opcache/ |
H A D | ZendAccelerator.c | 191 if (ZCG(cwd)) { in ZEND_FUNCTION() 196 if (ZCG(cwd)) { in ZEND_FUNCTION() 198 ZCG(cwd) = NULL; in ZEND_FUNCTION() 207 if (ZCG(cwd)) { in accel_getcwd() 208 return ZCG(cwd); in accel_getcwd() 218 return ZCG(cwd); in accel_getcwd() 1382 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in store_script_in_file_cache() 1386 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 7L) & ~7L); in store_script_in_file_cache() 1502 if (ZCG(mem)) { in cache_script_in_shared_memory() 1503 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in cache_script_in_shared_memory() [all …]
|
H A D | zend_accelerator_module.c | 88 if (ZCG(accel_directives).restrict_api && *ZCG(accel_directives).restrict_api) { in validate_api_restriction() 243 ZCG(accelerator_enabled) = 0; in ZEND_INI_MH() 341 if (ZCG(accel_directives).validate_timestamps) { 406 if (ZCG(enabled) && accel_startup_ok && ZCG(accel_directives).file_override_enabled) { 440 if (ZCG(accelerator_enabled) || file_cache_only) { 445 if (ZCG(enabled) && accel_startup_ok && ZCG(accel_directives).optimization_level) { 455 if (ZCG(accel_directives).file_cache) { 467 if (ZCG(enabled)) { 565 if (ZCG(accel_directives).validate_timestamps) { 604 if (ZCG(accel_directives).file_cache) { [all …]
|
H A D | zend_shared_alloc.c | 170 if (ZCG(accel_directives).memory_model && ZCG(accel_directives).memory_model[0]) { in zend_shared_alloc_startup() 254 ZCG(locked) = 0; in zend_shared_alloc_startup() 325 if (!ZCG(locked)) { in zend_shared_alloc() 375 retval = ZCG(arena_mem); in _zend_shared_memdup() 376 ZCG(arena_mem) = (void*)(((char*)ZCG(arena_mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup() 378 retval = ZCG(mem); in _zend_shared_memdup() 379 ZCG(mem) = (void*)(((char*)ZCG(mem)) + ZEND_ALIGNED_SIZE(size)); in _zend_shared_memdup() 437 if (ZCG(locked)) { in zend_shared_alloc_safe_unlock() 476 ZCG(locked) = 1; in zend_shared_alloc_lock() 490 ZCG(locked) = 0; in zend_shared_alloc_unlock() [all …]
|
H A D | zend_accelerator_debug.c | 38 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 D | zend_persist.c | 126 HT_SET_DATA_ADDR(ht, ZCG(mem)); in zend_hash_persist() 141 void *data = ZCG(mem); in zend_hash_persist() 347 …ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE(zend_extensions_op_array_persist(op_array, … in zend_persist_op_array_ex() 537 …ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE(zend_extensions_op_array_persist(op_array, … in zend_persist_op_array_ex() 555 ZCG(arena_mem) = (void*)(((char*)ZCG(arena_mem)) + ZEND_ALIGNED_SIZE(sizeof(void*))); in zend_persist_op_array() 602 if (ZCG(is_immutable_class)) { in zend_persist_class_method() 616 ZCG(arena_mem) = (void*)(((char*)ZCG(arena_mem)) + ZEND_ALIGNED_SIZE(sizeof(void*))); in zend_persist_class_method() 1052 script->mem = ZCG(mem); in zend_accel_script_persist() 1073 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in zend_accel_script_persist() 1078 script->arena_mem = ZCG(arena_mem) = ZCG(mem); in zend_accel_script_persist() [all …]
|
H A D | zend_persist_calc.c | 34 if (ZCG(is_immutable_class)) { \ 44 if (ZCG(current_persistent_script)->corrupted) { \ 239 if (ZCG(accel_directives).save_comments && op_array->doc_comment) { in zend_persist_op_array_calc_ex() 266 if (ZCG(current_persistent_script)->corrupted) { in zend_persist_op_array_calc() 293 if (!ZCG(is_immutable_class)) { in zend_persist_class_method_calc() 312 if (ZCG(accel_directives).save_comments && prop->doc_comment) { in zend_persist_property_info_calc() 326 if (ZCG(accel_directives).save_comments && c->doc_comment) { in zend_persist_class_constant_calc() 363 ZCG(is_immutable_class) = in zend_persist_class_entry_calc() 367 !ZCG(current_persistent_script)->corrupted; in zend_persist_class_entry_calc() 510 ZCG(current_persistent_script) = new_persistent_script; in zend_accel_script_persist_calc() [all …]
|
H A D | zend_accelerator_util_funcs.c | 38 ((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… 522 } else if (UNEXPECTED(!ZCG(accel_directives).ignore_dups)) { in zend_accel_class_hash_copy() 559 } else if (UNEXPECTED(!ZCG(accel_directives).ignore_dups)) { in zend_accel_class_hash_copy_from_shm() 742 zend_hash_init(&ZCG(bind_hash), 10, NULL, NULL, 0); in zend_accel_load_script() 744 ZCG(current_persistent_script) = persistent_script; in zend_accel_load_script() 745 ZCG(arena_mem) = NULL; in zend_accel_load_script() 751 ZCG(arena_mem) = (void*)(((zend_uintptr_t)ZCG(arena_mem) + 63L) & ~63L); in zend_accel_load_script() 782 zend_hash_destroy(&ZCG(bind_hash)); in zend_accel_load_script() [all …]
|
H A D | shared_alloc_win32.c | 141 if (ZCG(accel_directives).file_cache && ZCG(accel_directives).file_cache_fallback) { in zend_shared_alloc_reattach() 274 if (!ZCG(accel_directives).mmap_base || !*ZCG(accel_directives).mmap_base) { in create_segments() 277 char *s = ZCG(accel_directives).mmap_base; in create_segments()
|
H A D | zend_accelerator_hash.c | 90 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 D | zend_file_cache.c | 231 ZCG(mem) = (void*)zend_string_realloc( 232 (zend_string*)ZCG(mem), 838 len = strlen(ZCG(accel_directives).file_cache); 840 memcpy(filename, ZCG(accel_directives).file_cache, len); 846 len = strlen(ZCG(accel_directives).file_cache); 956 vec[2].iov_base = ZSTR_VAL((zend_string*)ZCG(mem)); 961 zend_string_release_ex((zend_string*)ZCG(mem), 0); 975 zend_string_release_ex((zend_string*)ZCG(mem), 0); 984 zend_string_release_ex((zend_string*)ZCG(mem), 0); 1576 if (ZCG(accel_directives).validate_timestamps && [all …]
|
H A D | ZendAccelerator.h | 292 # define ZCG(v) ZEND_TSRMG(accel_globals_id, zend_accel_globals *, v) macro 298 # define ZCG(v) (accel_globals.v)
|
Completed in 76 milliseconds