ZSMMG 189 ext/opcache/ZendAccelerator.c if ((((double) ZSMMG(wasted_shared_memory)) / ZCG(accel_directives).memory_consumption) >= ZCG(accel_directives).max_wasted_percentage) {
ZSMMG 1086 ext/opcache/ZendAccelerator.c ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption;
ZSMMG 1087 ext/opcache/ZendAccelerator.c if (ZSMMG(memory_exhausted)) {
ZSMMG 1110 ext/opcache/ZendAccelerator.c ZSMMG(memory_exhausted) = 1;
ZSMMG 1145 ext/opcache/ZendAccelerator.c ZSMMG(memory_exhausted) = 1;
ZSMMG 1214 ext/opcache/ZendAccelerator.c ZSMMG(memory_exhausted) = 1;
ZSMMG 1571 ext/opcache/ZendAccelerator.c ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption;
ZSMMG 1572 ext/opcache/ZendAccelerator.c if (ZSMMG(memory_exhausted)) {
ZSMMG 1596 ext/opcache/ZendAccelerator.c ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption;
ZSMMG 1597 ext/opcache/ZendAccelerator.c if (ZSMMG(memory_exhausted)) {
ZSMMG 1616 ext/opcache/ZendAccelerator.c if (ZSMMG(memory_exhausted) || ZCSG(restart_pending)) {
ZSMMG 2057 ext/opcache/ZendAccelerator.c ZSMMG(memory_exhausted) = 0;
ZSMMG 2061 ext/opcache/ZendAccelerator.c ZSMMG(wasted_shared_memory) = 0;
ZSMMG 2428 ext/opcache/ZendAccelerator.c ZSMMG(app_shared_globals) = accel_shared_globals;
ZSMMG 2553 ext/opcache/ZendAccelerator.c accel_shared_globals = (zend_accel_shared_globals *) ZSMMG(app_shared_globals);
ZSMMG 2781 ext/opcache/ZendAccelerator.c !ZSMMG(memory_exhausted) &&
ZSMMG 441 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%ld", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses));
ZSMMG 443 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%ld", ZCG(accel_directives).memory_consumption-zend_shared_alloc_get_free_memory()-ZSMMG(wasted_shared_memory));
ZSMMG 447 ext/opcache/zend_accelerator_module.c snprintf(buf, sizeof(buf), "%ld", ZSMMG(wasted_shared_memory));
ZSMMG 573 ext/opcache/zend_accelerator_module.c add_assoc_bool(return_value, "cache_full", ZSMMG(memory_exhausted));
ZSMMG 580 ext/opcache/zend_accelerator_module.c add_assoc_long(memory_usage, "used_memory", ZCG(accel_directives).memory_consumption-zend_shared_alloc_get_free_memory()-ZSMMG(wasted_shared_memory));
ZSMMG 582 ext/opcache/zend_accelerator_module.c add_assoc_long(memory_usage, "wasted_memory", ZSMMG(wasted_shared_memory));
ZSMMG 583 ext/opcache/zend_accelerator_module.c add_assoc_double(memory_usage, "current_wasted_percentage", (((double) ZSMMG(wasted_shared_memory))/ZCG(accel_directives).memory_consumption)*100.0);
ZSMMG 612 ext/opcache/zend_accelerator_module.c add_assoc_long(statistics, "misses", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses));
ZSMMG 127 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = NULL;
ZSMMG 128 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments_count) = 0;
ZSMMG 166 ext/opcache/zend_shared_alloc.c ZSMMG(shared_free) = requested_size; /* goes to tmp_shared_globals.shared_free */
ZSMMG 179 ext/opcache/zend_shared_alloc.c res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_count), &error_in);
ZSMMG 196 ext/opcache/zend_shared_alloc.c res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_count), &error_in);
ZSMMG 213 ext/opcache/zend_shared_alloc.c shared_segments_array_size = ZSMMG(shared_segments_count) * S_H(segment_type_size)();
ZSMMG 223 ext/opcache/zend_shared_alloc.c tmp_shared_segments = zend_shared_alloc(shared_segments_array_size + ZSMMG(shared_segments_count) * sizeof(void *));
ZSMMG 229 ext/opcache/zend_shared_alloc.c copy_shared_segments(tmp_shared_segments, ZSMMG(shared_segments)[0], ZSMMG(shared_segments_count), S_H(segment_type_size)());
ZSMMG 234 ext/opcache/zend_shared_alloc.c free(ZSMMG(shared_segments));
ZSMMG 235 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = tmp_shared_segments;
ZSMMG 237 ext/opcache/zend_shared_alloc.c ZSMMG(shared_memory_state).positions = (int *)zend_shared_alloc(sizeof(int) * ZSMMG(shared_segments_count));
ZSMMG 238 ext/opcache/zend_shared_alloc.c if (!ZSMMG(shared_memory_state).positions) {
ZSMMG 257 ext/opcache/zend_shared_alloc.c shared_segments_array_size = ZSMMG(shared_segments_count) * (S_H(segment_type_size)() + sizeof(void *));
ZSMMG 259 ext/opcache/zend_shared_alloc.c copy_shared_segments(tmp_shared_segments, ZSMMG(shared_segments)[0], ZSMMG(shared_segments_count), S_H(segment_type_size)());
ZSMMG 260 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = tmp_shared_segments;
ZSMMG 262 ext/opcache/zend_shared_alloc.c for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG 263 ext/opcache/zend_shared_alloc.c S_H(detach_segment)(ZSMMG(shared_segments)[i]);
ZSMMG 265 ext/opcache/zend_shared_alloc.c efree(ZSMMG(shared_segments));
ZSMMG 266 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments) = NULL;
ZSMMG 278 ext/opcache/zend_shared_alloc.c for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG 279 ext/opcache/zend_shared_alloc.c size_t block_size = ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos;
ZSMMG 291 ext/opcache/zend_shared_alloc.c zend_accel_error(ACCEL_LOG_WARNING, "Not enough free shared space to allocate %ld bytes (%ld bytes free)", (long)size, (long)ZSMMG(shared_free)); \
ZSMMG 293 ext/opcache/zend_shared_alloc.c ZSMMG(memory_exhausted) = 1; \
ZSMMG 308 ext/opcache/zend_shared_alloc.c if (block_size > ZSMMG(shared_free)) { /* No hope to find a big-enough block */
ZSMMG 312 ext/opcache/zend_shared_alloc.c for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG 313 ext/opcache/zend_shared_alloc.c if (ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos >= block_size) { /* found a valid block */
ZSMMG 314 ext/opcache/zend_shared_alloc.c void *retval = (void *) (((char *) ZSMMG(shared_segments)[i]->p) + ZSMMG(shared_segments)[i]->pos);
ZSMMG 316 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments)[i]->pos += block_size;
ZSMMG 317 ext/opcache/zend_shared_alloc.c ZSMMG(shared_free) -= block_size;
ZSMMG 449 ext/opcache/zend_shared_alloc.c return ZSMMG(shared_free);
ZSMMG 456 ext/opcache/zend_shared_alloc.c for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG 457 ext/opcache/zend_shared_alloc.c ZSMMG(shared_memory_state).positions[i] = ZSMMG(shared_segments)[i]->pos;
ZSMMG 459 ext/opcache/zend_shared_alloc.c ZSMMG(shared_memory_state).shared_free = ZSMMG(shared_free);
ZSMMG 466 ext/opcache/zend_shared_alloc.c for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG 467 ext/opcache/zend_shared_alloc.c ZSMMG(shared_segments)[i]->pos = ZSMMG(shared_memory_state).positions[i];
ZSMMG 469 ext/opcache/zend_shared_alloc.c ZSMMG(shared_free) = ZSMMG(shared_memory_state).shared_free;
ZSMMG 470 ext/opcache/zend_shared_alloc.c ZSMMG(memory_exhausted) = 0;
ZSMMG 471 ext/opcache/zend_shared_alloc.c ZSMMG(wasted_shared_memory) = 0;
ZSMMG 490 ext/opcache/zend_shared_alloc.c for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG 491 ext/opcache/zend_shared_alloc.c mprotect(ZSMMG(shared_segments)[i]->p, ZSMMG(shared_segments)[i]->size, mode);