ZSMMG             201 ext/opcache/ZendAccelerator.c 	if ((((double) ZSMMG(wasted_shared_memory)) / ZCG(accel_directives).memory_consumption) >= ZCG(accel_directives).max_wasted_percentage) {
ZSMMG            1119 ext/opcache/ZendAccelerator.c 				ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption;
ZSMMG            1120 ext/opcache/ZendAccelerator.c 				if (ZSMMG(memory_exhausted)) {
ZSMMG            1143 ext/opcache/ZendAccelerator.c 			ZSMMG(memory_exhausted) = 1;
ZSMMG            1236 ext/opcache/ZendAccelerator.c 		ZSMMG(memory_exhausted) = 1;
ZSMMG            1318 ext/opcache/ZendAccelerator.c 				ZSMMG(memory_exhausted) = 1;
ZSMMG            1740 ext/opcache/ZendAccelerator.c 				ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption;
ZSMMG            1741 ext/opcache/ZendAccelerator.c 				if (ZSMMG(memory_exhausted)) {
ZSMMG            1765 ext/opcache/ZendAccelerator.c 				ZSMMG(wasted_shared_memory) += persistent_script->dynamic_members.memory_consumption;
ZSMMG            1766 ext/opcache/ZendAccelerator.c 				if (ZSMMG(memory_exhausted)) {
ZSMMG            1793 ext/opcache/ZendAccelerator.c 		if (ZSMMG(memory_exhausted) || ZCSG(restart_pending)) {
ZSMMG            1980 ext/opcache/ZendAccelerator.c 	ZSMMG(memory_exhausted) = 0;
ZSMMG            1984 ext/opcache/ZendAccelerator.c 	ZSMMG(wasted_shared_memory) = 0;
ZSMMG            2406 ext/opcache/ZendAccelerator.c 	ZSMMG(app_shared_globals) = accel_shared_globals;
ZSMMG            2693 ext/opcache/ZendAccelerator.c 				accel_shared_globals = (zend_accel_shared_globals *) ZSMMG(app_shared_globals);
ZSMMG             476 ext/opcache/zend_accelerator_module.c 			snprintf(buf, sizeof(buf), "%pd", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses));
ZSMMG             478 ext/opcache/zend_accelerator_module.c 			snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ZCG(accel_directives).memory_consumption-zend_shared_alloc_get_free_memory()-ZSMMG(wasted_shared_memory));
ZSMMG             482 ext/opcache/zend_accelerator_module.c 			snprintf(buf, sizeof(buf), "%pd", ZSMMG(wasted_shared_memory));
ZSMMG             614 ext/opcache/zend_accelerator_module.c 	add_assoc_bool(return_value, "cache_full", ZSMMG(memory_exhausted));
ZSMMG             620 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             622 ext/opcache/zend_accelerator_module.c 	add_assoc_long(&memory_usage, "wasted_memory", ZSMMG(wasted_shared_memory));
ZSMMG             623 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             648 ext/opcache/zend_accelerator_module.c 	add_assoc_long(&statistics, "misses", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses));
ZSMMG            1329 ext/opcache/zend_file_cache.c 			ZSMMG(memory_exhausted) = 1;
ZSMMG             126 ext/opcache/zend_shared_alloc.c 	ZSMMG(shared_segments) = NULL;
ZSMMG             127 ext/opcache/zend_shared_alloc.c 	ZSMMG(shared_segments_count) = 0;
ZSMMG             164 ext/opcache/zend_shared_alloc.c 	ZSMMG(shared_free) = requested_size; /* goes to tmp_shared_globals.shared_free */
ZSMMG             177 ext/opcache/zend_shared_alloc.c 				res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_count), &error_in);
ZSMMG             199 ext/opcache/zend_shared_alloc.c 			res = zend_shared_alloc_try(he, requested_size, &ZSMMG(shared_segments), &ZSMMG(shared_segments_count), &error_in);
ZSMMG             221 ext/opcache/zend_shared_alloc.c 	shared_segments_array_size = ZSMMG(shared_segments_count) * S_H(segment_type_size)();
ZSMMG             231 ext/opcache/zend_shared_alloc.c 	tmp_shared_segments = zend_shared_alloc(shared_segments_array_size + ZSMMG(shared_segments_count) * sizeof(void *));
ZSMMG             237 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             242 ext/opcache/zend_shared_alloc.c 	free(ZSMMG(shared_segments));
ZSMMG             243 ext/opcache/zend_shared_alloc.c 	ZSMMG(shared_segments) = tmp_shared_segments;
ZSMMG             245 ext/opcache/zend_shared_alloc.c 	ZSMMG(shared_memory_state).positions = (int *)zend_shared_alloc(sizeof(int) * ZSMMG(shared_segments_count));
ZSMMG             246 ext/opcache/zend_shared_alloc.c 	if (!ZSMMG(shared_memory_state).positions) {
ZSMMG             265 ext/opcache/zend_shared_alloc.c 	shared_segments_array_size = ZSMMG(shared_segments_count) * (S_H(segment_type_size)() + sizeof(void *));
ZSMMG             267 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             268 ext/opcache/zend_shared_alloc.c 	ZSMMG(shared_segments) = tmp_shared_segments;
ZSMMG             270 ext/opcache/zend_shared_alloc.c 	for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG             271 ext/opcache/zend_shared_alloc.c 		S_H(detach_segment)(ZSMMG(shared_segments)[i]);
ZSMMG             273 ext/opcache/zend_shared_alloc.c 	efree(ZSMMG(shared_segments));
ZSMMG             274 ext/opcache/zend_shared_alloc.c 	ZSMMG(shared_segments) = NULL;
ZSMMG             286 ext/opcache/zend_shared_alloc.c 	for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG             287 ext/opcache/zend_shared_alloc.c 		size_t block_size = ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos;
ZSMMG             299 ext/opcache/zend_shared_alloc.c 		zend_accel_error(ACCEL_LOG_WARNING, "Not enough free shared space to allocate %pd bytes (%pd bytes free)", (zend_long)size, (zend_long)ZSMMG(shared_free)); \
ZSMMG             301 ext/opcache/zend_shared_alloc.c 			ZSMMG(memory_exhausted) = 1; \
ZSMMG             315 ext/opcache/zend_shared_alloc.c 	if (block_size > ZSMMG(shared_free)) { /* No hope to find a big-enough block */
ZSMMG             319 ext/opcache/zend_shared_alloc.c 	for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG             320 ext/opcache/zend_shared_alloc.c 		if (ZSMMG(shared_segments)[i]->size - ZSMMG(shared_segments)[i]->pos >= block_size) { /* found a valid block */
ZSMMG             321 ext/opcache/zend_shared_alloc.c 			void *retval = (void *) (((char *) ZSMMG(shared_segments)[i]->p) + ZSMMG(shared_segments)[i]->pos);
ZSMMG             323 ext/opcache/zend_shared_alloc.c 			ZSMMG(shared_segments)[i]->pos += block_size;
ZSMMG             324 ext/opcache/zend_shared_alloc.c 			ZSMMG(shared_free) -= block_size;
ZSMMG             464 ext/opcache/zend_shared_alloc.c 	return ZSMMG(shared_free);
ZSMMG             471 ext/opcache/zend_shared_alloc.c 	for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG             472 ext/opcache/zend_shared_alloc.c 		ZSMMG(shared_memory_state).positions[i] = ZSMMG(shared_segments)[i]->pos;
ZSMMG             474 ext/opcache/zend_shared_alloc.c 	ZSMMG(shared_memory_state).shared_free = ZSMMG(shared_free);
ZSMMG             481 ext/opcache/zend_shared_alloc.c 	for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG             482 ext/opcache/zend_shared_alloc.c 		ZSMMG(shared_segments)[i]->pos = ZSMMG(shared_memory_state).positions[i];
ZSMMG             484 ext/opcache/zend_shared_alloc.c 	ZSMMG(shared_free) = ZSMMG(shared_memory_state).shared_free;
ZSMMG             485 ext/opcache/zend_shared_alloc.c 	ZSMMG(memory_exhausted) = 0;
ZSMMG             486 ext/opcache/zend_shared_alloc.c 	ZSMMG(wasted_shared_memory) = 0;
ZSMMG             509 ext/opcache/zend_shared_alloc.c 	for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG             510 ext/opcache/zend_shared_alloc.c 		mprotect(ZSMMG(shared_segments)[i]->p, ZSMMG(shared_segments)[i]->size, mode);
ZSMMG             523 ext/opcache/zend_shared_alloc.c 	for (i = 0; i < ZSMMG(shared_segments_count); i++) {
ZSMMG             524 ext/opcache/zend_shared_alloc.c 		if ((char*)ptr >= (char*)ZSMMG(shared_segments)[i]->p &&
ZSMMG             525 ext/opcache/zend_shared_alloc.c 		    (char*)ptr < (char*)ZSMMG(shared_segments)[i]->p + ZSMMG(shared_segments)[i]->size) {