ZCSG 122 ext/opcache/ZendAccelerator.c # define INCREMENT(v) InterlockedIncrement64(&ZCSG(v)) ZCSG 123 ext/opcache/ZendAccelerator.c # define DECREMENT(v) InterlockedDecrement64(&ZCSG(v)) ZCSG 124 ext/opcache/ZendAccelerator.c # define LOCKVAL(v) (ZCSG(v)) ZCSG 234 ext/opcache/ZendAccelerator.c ZCSG(restart_in_progress) = 1; ZCSG 240 ext/opcache/ZendAccelerator.c ZCSG(restart_in_progress) = 0; ZCSG 245 ext/opcache/ZendAccelerator.c ZCSG(restart_in_progress) = 0; ZCSG 254 ext/opcache/ZendAccelerator.c if (ZCSG(restart_in_progress)) { ZCSG 263 ext/opcache/ZendAccelerator.c ZCSG(restart_in_progress) = 0; ZCSG 346 ext/opcache/ZendAccelerator.c uint idx = ZCSG(interned_strings).nNumUsed; ZCSG 350 ext/opcache/ZendAccelerator.c memset(ZCSG(interned_strings_saved_top), ZCSG 351 ext/opcache/ZendAccelerator.c 0, ZCSG(interned_strings_top) - ZCSG(interned_strings_saved_top)); ZCSG 352 ext/opcache/ZendAccelerator.c ZCSG(interned_strings_top) = ZCSG(interned_strings_saved_top); ZCSG 355 ext/opcache/ZendAccelerator.c p = ZCSG(interned_strings).arData + idx; ZCSG 356 ext/opcache/ZendAccelerator.c if ((char*)p->key < ZCSG(interned_strings_top)) break; ZCSG 357 ext/opcache/ZendAccelerator.c ZCSG(interned_strings).nNumUsed--; ZCSG 358 ext/opcache/ZendAccelerator.c ZCSG(interned_strings).nNumOfElements--; ZCSG 360 ext/opcache/ZendAccelerator.c nIndex = p->h | ZCSG(interned_strings).nTableMask; ZCSG 361 ext/opcache/ZendAccelerator.c if (HT_HASH(&ZCSG(interned_strings), nIndex) == HT_IDX_TO_HASH(idx)) { ZCSG 362 ext/opcache/ZendAccelerator.c HT_HASH(&ZCSG(interned_strings), nIndex) = Z_NEXT(p->val); ZCSG 364 ext/opcache/ZendAccelerator.c uint32_t prev = HT_HASH(&ZCSG(interned_strings), nIndex); ZCSG 365 ext/opcache/ZendAccelerator.c while (Z_NEXT(HT_HASH_TO_BUCKET(&ZCSG(interned_strings), prev)->val) != idx) { ZCSG 366 ext/opcache/ZendAccelerator.c prev = Z_NEXT(HT_HASH_TO_BUCKET(&ZCSG(interned_strings), prev)->val); ZCSG 368 ext/opcache/ZendAccelerator.c Z_NEXT(HT_HASH_TO_BUCKET(&ZCSG(interned_strings), prev)->val) = Z_NEXT(p->val); ZCSG 375 ext/opcache/ZendAccelerator.c ZCSG(interned_strings_saved_top) = ZCSG(interned_strings_top); ZCSG 400 ext/opcache/ZendAccelerator.c nIndex = h | ZCSG(interned_strings).nTableMask; ZCSG 403 ext/opcache/ZendAccelerator.c idx = HT_HASH(&ZCSG(interned_strings), nIndex); ZCSG 404 ext/opcache/ZendAccelerator.c arData = ZCSG(interned_strings).arData; ZCSG 440 ext/opcache/ZendAccelerator.c nIndex = h | ZCSG(interned_strings).nTableMask; ZCSG 443 ext/opcache/ZendAccelerator.c idx = HT_HASH(&ZCSG(interned_strings), nIndex); ZCSG 445 ext/opcache/ZendAccelerator.c p = HT_HASH_TO_BUCKET(&ZCSG(interned_strings), idx); ZCSG 455 ext/opcache/ZendAccelerator.c if (ZCSG(interned_strings_top) + ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(ZSTR_LEN(str))) >= ZCSG 456 ext/opcache/ZendAccelerator.c ZCSG(interned_strings_end)) { ZCSG 464 ext/opcache/ZendAccelerator.c idx = ZCSG(interned_strings).nNumUsed++; ZCSG 465 ext/opcache/ZendAccelerator.c ZCSG(interned_strings).nNumOfElements++; ZCSG 466 ext/opcache/ZendAccelerator.c p = ZCSG(interned_strings).arData + idx; ZCSG 467 ext/opcache/ZendAccelerator.c p->key = (zend_string*) ZCSG(interned_strings_top); ZCSG 468 ext/opcache/ZendAccelerator.c ZCSG(interned_strings_top) += ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(ZSTR_LEN(str))); ZCSG 482 ext/opcache/ZendAccelerator.c Z_NEXT(p->val) = HT_HASH(&ZCSG(interned_strings), nIndex); ZCSG 483 ext/opcache/ZendAccelerator.c HT_HASH(&ZCSG(interned_strings), nIndex) = HT_IDX_TO_HASH(idx); ZCSG 605 ext/opcache/ZendAccelerator.c ZCSG(force_restart_time) = 0; ZCSG 622 ext/opcache/ZendAccelerator.c ZCSG(force_restart_time) = time(NULL); /* restore forced restart request */ ZCSG 661 ext/opcache/ZendAccelerator.c && ZCSG(force_restart_time) ZCSG 662 ext/opcache/ZendAccelerator.c && time(NULL) >= ZCSG(force_restart_time)) { ZCSG 965 ext/opcache/ZendAccelerator.c if ((ZCG(counted) || ZCSG(accelerator_enabled))) { ZCSG 981 ext/opcache/ZendAccelerator.c char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, ZSTR_VAL(str) - ZCSG(interned_strings_start)); ZCSG 1005 ext/opcache/ZendAccelerator.c if ((ZCG(counted) || ZCSG(accelerator_enabled))) { ZCSG 1020 ext/opcache/ZendAccelerator.c char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, ZSTR_VAL(str) - ZCSG(interned_strings_start)); ZCSG 1087 ext/opcache/ZendAccelerator.c if (!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled) || accelerator_shm_read_lock() != SUCCESS) { ZCSG 1103 ext/opcache/ZendAccelerator.c persistent_script = zend_accel_hash_find(&ZCSG(hash), realpath); ZCSG 1122 ext/opcache/ZendAccelerator.c zend_accel_hash_is_full(&ZCSG(hash)) ? ACCEL_RESTART_HASH : ACCEL_RESTART_OOM; ZCSG 1140 ext/opcache/ZendAccelerator.c if (!zend_accel_hash_str_find(&ZCSG(hash), key, key_length)) { ZCSG 1141 ext/opcache/ZendAccelerator.c if (zend_accel_hash_is_full(&ZCSG(hash))) { ZCSG 1149 ext/opcache/ZendAccelerator.c if (zend_accel_hash_update(&ZCSG(hash), new_key, key_length, 1, bucket)) { ZCSG 1234 ext/opcache/ZendAccelerator.c if (zend_accel_hash_is_full(&ZCSG(hash))) { ZCSG 1245 ext/opcache/ZendAccelerator.c bucket = zend_accel_hash_find_entry(&ZCSG(hash), new_persistent_script->full_path); ZCSG 1305 ext/opcache/ZendAccelerator.c bucket = zend_accel_hash_update(&ZCSG(hash), ZSTR_VAL(new_persistent_script->full_path), ZSTR_LEN(new_persistent_script->full_path), 0, new_persistent_script); ZCSG 1314 ext/opcache/ZendAccelerator.c if (zend_accel_hash_update(&ZCSG(hash), key, key_length, 1, bucket)) { ZCSG 1433 ext/opcache/ZendAccelerator.c ZCSG(blacklist_misses)++; ZCSG 1464 ext/opcache/ZendAccelerator.c ZCSG(blacklist_misses)++; ZCSG 1636 ext/opcache/ZendAccelerator.c } else if ((!ZCG(counted) && !ZCSG(accelerator_enabled)) || ZCSG 1637 ext/opcache/ZendAccelerator.c (ZCSG(restart_in_progress) && accel_restart_is_active())) { ZCSG 1671 ext/opcache/ZendAccelerator.c persistent_script = zend_accel_hash_str_find(&ZCSG(hash), key, key_length); ZCSG 1690 ext/opcache/ZendAccelerator.c bucket = zend_accel_hash_find_entry(&ZCSG(hash), file_handle->opened_path); ZCSG 1743 ext/opcache/ZendAccelerator.c zend_accel_hash_is_full(&ZCSG(hash)) ? ACCEL_RESTART_HASH : ACCEL_RESTART_OOM; ZCSG 1768 ext/opcache/ZendAccelerator.c zend_accel_hash_is_full(&ZCSG(hash)) ? ACCEL_RESTART_HASH : ACCEL_RESTART_OOM; ZCSG 1790 ext/opcache/ZendAccelerator.c ZCSG(misses)++; ZCSG 1793 ext/opcache/ZendAccelerator.c if (ZSMMG(memory_exhausted) || ZCSG(restart_pending)) { ZCSG 1825 ext/opcache/ZendAccelerator.c ZCSG(hits)++; /* TBFixed: may lose one hit */ ZCSG 1829 ext/opcache/ZendAccelerator.c InterlockedIncrement64(&ZCSG(hits)); ZCSG 1831 ext/opcache/ZendAccelerator.c InterlockedIncrement(&ZCSG(hits)); ZCSG 1904 ext/opcache/ZendAccelerator.c (ZCG(counted) || ZCSG(accelerator_enabled)) && ZCSG 1905 ext/opcache/ZendAccelerator.c !ZCSG(restart_in_progress)) { ZCSG 1926 ext/opcache/ZendAccelerator.c zend_accel_hash_entry *bucket = zend_accel_hash_str_find_entry(&ZCSG(hash), key, key_length); ZCSG 1947 ext/opcache/ZendAccelerator.c zend_accel_hash_entry *bucket = zend_accel_hash_find_entry(&ZCSG(hash), resolved_path); ZCSG 1981 ext/opcache/ZendAccelerator.c ZCSG(hits) = 0; ZCSG 1982 ext/opcache/ZendAccelerator.c ZCSG(misses) = 0; ZCSG 1983 ext/opcache/ZendAccelerator.c ZCSG(blacklist_misses) = 0; ZCSG 1985 ext/opcache/ZendAccelerator.c ZCSG(restart_pending) = 0; ZCSG 1986 ext/opcache/ZendAccelerator.c ZCSG(force_restart_time) = 0; ZCSG 2050 ext/opcache/ZendAccelerator.c if (ZCSG(restart_pending)) { ZCSG 2052 ext/opcache/ZendAccelerator.c if (ZCSG(restart_pending) != 0) { /* check again, to ensure that the cache wasn't already cleaned by another process */ ZCSG 2055 ext/opcache/ZendAccelerator.c ZCSG(restart_pending) = 0; ZCSG 2056 ext/opcache/ZendAccelerator.c switch ZCSG(restart_reason) { ZCSG 2058 ext/opcache/ZendAccelerator.c ZCSG(oom_restarts)++; ZCSG 2061 ext/opcache/ZendAccelerator.c ZCSG(hash_restarts)++; ZCSG 2064 ext/opcache/ZendAccelerator.c ZCSG(manual_restarts)++; ZCSG 2070 ext/opcache/ZendAccelerator.c zend_accel_hash_clean(&ZCSG(hash)); ZCSG 2079 ext/opcache/ZendAccelerator.c ZCSG(accelerator_enabled) = ZCSG(cache_status_before_restart); ZCSG 2080 ext/opcache/ZendAccelerator.c if (ZCSG(last_restart_time) < ZCG(request_time)) { ZCSG 2081 ext/opcache/ZendAccelerator.c ZCSG(last_restart_time) = ZCG(request_time); ZCSG 2083 ext/opcache/ZendAccelerator.c ZCSG(last_restart_time)++; ZCSG 2095 ext/opcache/ZendAccelerator.c if (ZCSG(last_restart_time) != ZCG(last_restart_time)) { ZCSG 2097 ext/opcache/ZendAccelerator.c ZCG(last_restart_time) = ZCSG(last_restart_time); ZCSG 2408 ext/opcache/ZendAccelerator.c zend_accel_hash_init(&ZCSG(hash), ZCG(accel_directives).max_accelerated_files); ZCSG 2410 ext/opcache/ZendAccelerator.c ZCSG(interned_strings_start) = ZCSG(interned_strings_end) = NULL; ZCSG 2412 ext/opcache/ZendAccelerator.c zend_hash_init(&ZCSG(interned_strings), (ZCG(accel_directives).interned_strings_buffer * 1024 * 1024) / (sizeof(Bucket) + sizeof(Bucket*) + 8 /* average string length */), NULL, NULL, 1); ZCSG 2416 ext/opcache/ZendAccelerator.c ZCSG(interned_strings).nTableMask = -ZCSG(interned_strings).nTableSize; ZCSG 2417 ext/opcache/ZendAccelerator.c data = zend_shared_alloc(HT_SIZE(&ZCSG(interned_strings))); ZCSG 2418 ext/opcache/ZendAccelerator.c ZCSG(interned_strings_start) = zend_shared_alloc((ZCG(accel_directives).interned_strings_buffer * 1024 * 1024)); ZCSG 2419 ext/opcache/ZendAccelerator.c if (!data || !ZCSG(interned_strings_start)) { ZCSG 2424 ext/opcache/ZendAccelerator.c HT_SET_DATA_ADDR(&ZCSG(interned_strings), data); ZCSG 2425 ext/opcache/ZendAccelerator.c HT_HASH_RESET(&ZCSG(interned_strings)); ZCSG 2426 ext/opcache/ZendAccelerator.c ZCSG(interned_strings_end) = ZCSG(interned_strings_start) + (ZCG(accel_directives).interned_strings_buffer * 1024 * 1024); ZCSG 2427 ext/opcache/ZendAccelerator.c ZCSG(interned_strings_top) = ZCSG(interned_strings_start); ZCSG 2452 ext/opcache/ZendAccelerator.c ZCSG(oom_restarts) = 0; ZCSG 2453 ext/opcache/ZendAccelerator.c ZCSG(hash_restarts) = 0; ZCSG 2454 ext/opcache/ZendAccelerator.c ZCSG(manual_restarts) = 0; ZCSG 2456 ext/opcache/ZendAccelerator.c ZCSG(accelerator_enabled) = 1; ZCSG 2457 ext/opcache/ZendAccelerator.c ZCSG(start_time) = zend_accel_get_time(); ZCSG 2458 ext/opcache/ZendAccelerator.c ZCSG(last_restart_time) = 0; ZCSG 2459 ext/opcache/ZendAccelerator.c ZCSG(restart_in_progress) = 0; ZCSG 2725 ext/opcache/ZendAccelerator.c ZCG(last_restart_time) = ZCSG(last_restart_time); ZCSG 2852 ext/opcache/ZendAccelerator.c if (ZCSG(restart_pending)) { ZCSG 2859 ext/opcache/ZendAccelerator.c ZCSG(restart_pending) = 1; ZCSG 2860 ext/opcache/ZendAccelerator.c ZCSG(restart_reason) = reason; ZCSG 2861 ext/opcache/ZendAccelerator.c ZCSG(cache_status_before_restart) = ZCSG(accelerator_enabled); ZCSG 2862 ext/opcache/ZendAccelerator.c ZCSG(accelerator_enabled) = 0; ZCSG 2865 ext/opcache/ZendAccelerator.c ZCSG(force_restart_time) = zend_accel_get_time() + ZCG(accel_directives).force_restart_timeout; ZCSG 2867 ext/opcache/ZendAccelerator.c ZCSG(force_restart_time) = 0; ZCSG 2896 ext/opcache/ZendAccelerator.c if (ZCSG(restart_in_progress)) { ZCSG 341 ext/opcache/ZendAccelerator.h ((char*)(str) >= ZCSG(interned_strings_start) && (char*)(str) < ZCSG(interned_strings_end)) ZCSG 326 ext/opcache/zend_accelerator_module.c zend_persistent_script *persistent_script = zend_accel_hash_str_find(&ZCSG(hash), key, key_length); ZCSG 434 ext/opcache/zend_accelerator_module.c ((ZCG(counted) || ZCSG(accelerator_enabled)) || ZCG(accel_directives).file_cache_only) ZCSG 436 ext/opcache/zend_accelerator_module.c (ZCG(counted) || ZCSG(accelerator_enabled)) ZCSG 474 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%pd", (zend_ulong)ZCSG(hits)); ZCSG 476 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%pd", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses)); ZCSG 484 ext/opcache/zend_accelerator_module.c if (ZCSG(interned_strings_start) && ZCSG(interned_strings_end) && ZCSG(interned_strings_top)) { ZCSG 485 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%pd", ZCSG(interned_strings_top) - ZCSG(interned_strings_start)); ZCSG 487 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%pd", ZCSG(interned_strings_end) - ZCSG(interned_strings_top)); ZCSG 490 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_direct_entries); ZCSG 492 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_entries); ZCSG 494 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%pd", ZCSG(hash).max_num_entries); ZCSG 496 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%pd", ZCSG(oom_restarts)); ZCSG 498 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%pd", ZCSG(hash_restarts)); ZCSG 500 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%pd", ZCSG(manual_restarts)); ZCSG 540 ext/opcache/zend_accelerator_module.c if (!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled) || accelerator_shm_read_lock() != SUCCESS) { ZCSG 545 ext/opcache/zend_accelerator_module.c for (i = 0; i<ZCSG(hash).max_num_entries; i++) { ZCSG 546 ext/opcache/zend_accelerator_module.c for (cache_entry = ZCSG(hash).hash_table[i]; cache_entry; cache_entry = cache_entry->next) { ZCSG 602 ext/opcache/zend_accelerator_module.c add_assoc_bool(return_value, "opcache_enabled", ZCG(enabled) && (ZCG(counted) || ZCSG(accelerator_enabled))); ZCSG 615 ext/opcache/zend_accelerator_module.c add_assoc_bool(return_value, "restart_pending", ZCSG(restart_pending)); ZCSG 616 ext/opcache/zend_accelerator_module.c add_assoc_bool(return_value, "restart_in_progress", ZCSG(restart_in_progress)); ZCSG 626 ext/opcache/zend_accelerator_module.c if (ZCSG(interned_strings_start) && ZCSG(interned_strings_end) && ZCSG(interned_strings_top)) { ZCSG 630 ext/opcache/zend_accelerator_module.c add_assoc_long(&interned_strings_usage, "buffer_size", ZCSG(interned_strings_end) - ZCSG(interned_strings_start)); ZCSG 631 ext/opcache/zend_accelerator_module.c add_assoc_long(&interned_strings_usage, "used_memory", ZCSG(interned_strings_top) - ZCSG(interned_strings_start)); ZCSG 632 ext/opcache/zend_accelerator_module.c add_assoc_long(&interned_strings_usage, "free_memory", ZCSG(interned_strings_end) - ZCSG(interned_strings_top)); ZCSG 633 ext/opcache/zend_accelerator_module.c add_assoc_long(&interned_strings_usage, "number_of_strings", ZCSG(interned_strings).nNumOfElements); ZCSG 639 ext/opcache/zend_accelerator_module.c add_assoc_long(&statistics, "num_cached_scripts", ZCSG(hash).num_direct_entries); ZCSG 640 ext/opcache/zend_accelerator_module.c add_assoc_long(&statistics, "num_cached_keys", ZCSG(hash).num_entries); ZCSG 641 ext/opcache/zend_accelerator_module.c add_assoc_long(&statistics, "max_cached_keys", ZCSG(hash).max_num_entries); ZCSG 642 ext/opcache/zend_accelerator_module.c add_assoc_long(&statistics, "hits", (zend_long)ZCSG(hits)); ZCSG 643 ext/opcache/zend_accelerator_module.c add_assoc_long(&statistics, "start_time", ZCSG(start_time)); ZCSG 644 ext/opcache/zend_accelerator_module.c add_assoc_long(&statistics, "last_restart_time", ZCSG(last_restart_time)); ZCSG 645 ext/opcache/zend_accelerator_module.c add_assoc_long(&statistics, "oom_restarts", ZCSG(oom_restarts)); ZCSG 646 ext/opcache/zend_accelerator_module.c add_assoc_long(&statistics, "hash_restarts", ZCSG(hash_restarts)); ZCSG 647 ext/opcache/zend_accelerator_module.c add_assoc_long(&statistics, "manual_restarts", ZCSG(manual_restarts)); ZCSG 648 ext/opcache/zend_accelerator_module.c add_assoc_long(&statistics, "misses", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses)); ZCSG 649 ext/opcache/zend_accelerator_module.c add_assoc_long(&statistics, "blacklist_misses", ZCSG(blacklist_misses)); ZCSG 650 ext/opcache/zend_accelerator_module.c reqs = ZCSG(hits)+ZCSG(misses); ZCSG 651 ext/opcache/zend_accelerator_module.c add_assoc_double(&statistics, "blacklist_miss_ratio", reqs?(((double) ZCSG(blacklist_misses))/reqs)*100.0:0); ZCSG 652 ext/opcache/zend_accelerator_module.c add_assoc_double(&statistics, "opcache_hit_rate", reqs?(((double) ZCSG(hits))/reqs)*100.0:0); ZCSG 746 ext/opcache/zend_accelerator_module.c if ((!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled)) ZCSG 793 ext/opcache/zend_accelerator_module.c if (!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled)) { ZCSG 832 ext/opcache/zend_accelerator_module.c if (!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled)) { ZCSG 1308 ext/opcache/zend_file_cache.c !ZCSG(restart_in_progress) && ZCSG 1316 ext/opcache/zend_file_cache.c bucket = zend_accel_hash_find_entry(&ZCSG(hash), full_path); ZCSG 1327 ext/opcache/zend_file_cache.c if (zend_accel_hash_is_full(&ZCSG(hash))) { ZCSG 1365 ext/opcache/zend_file_cache.c zend_accel_hash_update(&ZCSG(hash), ZSTR_VAL(script->full_path), ZSTR_LEN(script->full_path), 0, script);