ZSMMG             189 ext/opcache/ZendAccelerator.c 	if ((((double) ZSMMG(wasted_shared_memory)) / ZCG(accel_directives).memory_consumption) >= ZCG(accel_directives).max_wasted_percentage) {
ZSMMG            1085 ext/opcache/ZendAccelerator.c 				ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption;
ZSMMG            1086 ext/opcache/ZendAccelerator.c 				if (ZSMMG(memory_exhausted)) {
ZSMMG            1109 ext/opcache/ZendAccelerator.c 			ZSMMG(memory_exhausted) = 1;
ZSMMG            1142 ext/opcache/ZendAccelerator.c 		ZSMMG(memory_exhausted) = 1;
ZSMMG            1207 ext/opcache/ZendAccelerator.c 			ZSMMG(memory_exhausted) = 1;
ZSMMG            1580 ext/opcache/ZendAccelerator.c 				ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption;
ZSMMG            1581 ext/opcache/ZendAccelerator.c 				if (ZSMMG(memory_exhausted)) {
ZSMMG            1605 ext/opcache/ZendAccelerator.c 				ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption;
ZSMMG            1606 ext/opcache/ZendAccelerator.c 				if (ZSMMG(memory_exhausted)) {
ZSMMG            1625 ext/opcache/ZendAccelerator.c 		if (ZSMMG(memory_exhausted) || ZCSG(restart_pending)) {
ZSMMG            2066 ext/opcache/ZendAccelerator.c 	ZSMMG(memory_exhausted) = 0;
ZSMMG            2070 ext/opcache/ZendAccelerator.c 	ZSMMG(wasted_shared_memory) = 0;
ZSMMG            2442 ext/opcache/ZendAccelerator.c 	ZSMMG(app_shared_globals) = accel_shared_globals;
ZSMMG            2564 ext/opcache/ZendAccelerator.c 			accel_shared_globals = (zend_accel_shared_globals *) ZSMMG(app_shared_globals);
ZSMMG            2795 ext/opcache/ZendAccelerator.c 	    !ZSMMG(memory_exhausted) &&
ZSMMG             433 ext/opcache/zend_accelerator_module.c 			snprintf(buf, sizeof(buf), "%ld", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses));
ZSMMG             435 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             439 ext/opcache/zend_accelerator_module.c 			snprintf(buf, sizeof(buf), "%ld", ZSMMG(wasted_shared_memory));
ZSMMG             557 ext/opcache/zend_accelerator_module.c 	add_assoc_bool(return_value, "cache_full", ZSMMG(memory_exhausted));
ZSMMG             564 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             566 ext/opcache/zend_accelerator_module.c 	add_assoc_long(memory_usage, "wasted_memory", ZSMMG(wasted_shared_memory));
ZSMMG             567 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             582 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);