Lines Matching refs:interned_strings

429 	memset(ZCSG(interned_strings).saved_top,  in accel_interned_strings_restore_state()
430 0, (char*)ZCSG(interned_strings).top - (char*)ZCSG(interned_strings).saved_top); in accel_interned_strings_restore_state()
433 ZCSG(interned_strings).top = ZCSG(interned_strings).saved_top; in accel_interned_strings_restore_state()
436 memset((char*)&ZCSG(interned_strings) + sizeof(zend_string_table), in accel_interned_strings_restore_state()
438 (char*)ZCSG(interned_strings).start - in accel_interned_strings_restore_state()
439 ((char*)&ZCSG(interned_strings) + sizeof(zend_string_table))); in accel_interned_strings_restore_state()
440 s = ZCSG(interned_strings).start; in accel_interned_strings_restore_state()
441 top = ZCSG(interned_strings).top; in accel_interned_strings_restore_state()
454 hash_slot = STRTAB_HASH_TO_SLOT(&ZCSG(interned_strings), ZSTR_H(s)); in accel_interned_strings_restore_state()
456 *hash_slot = STRTAB_STR_TO_POS(&ZCSG(interned_strings), s); in accel_interned_strings_restore_state()
461 ZCSG(interned_strings).nNumOfElements = n; in accel_interned_strings_restore_state()
466 ZCSG(interned_strings).saved_top = ZCSG(interned_strings).top; in accel_interned_strings_save_state()
490 pos = *STRTAB_HASH_TO_SLOT(&ZCSG(interned_strings), h); in accel_find_interned_string()
493 s = STRTAB_POS_TO_STR(&ZCSG(interned_strings), pos); in accel_find_interned_string()
522 hash_slot = STRTAB_HASH_TO_SLOT(&ZCSG(interned_strings), h); in accel_new_interned_string()
526 s = STRTAB_POS_TO_STR(&ZCSG(interned_strings), pos); in accel_new_interned_string()
534 …if (UNEXPECTED((char*)ZCSG(interned_strings).end - (char*)ZCSG(interned_strings).top < STRTAB_STR_… in accel_new_interned_string()
541 ZCSG(interned_strings).nNumOfElements++; in accel_new_interned_string()
542 s = ZCSG(interned_strings).top; in accel_new_interned_string()
543 hash_slot = STRTAB_HASH_TO_SLOT(&ZCSG(interned_strings), h); in accel_new_interned_string()
545 *hash_slot = STRTAB_STR_TO_POS(&ZCSG(interned_strings), s); in accel_new_interned_string()
551 ZCSG(interned_strings).top = STRTAB_NEXT(s); in accel_new_interned_string()
586 pos = *STRTAB_HASH_TO_SLOT(&ZCSG(interned_strings), h); in accel_find_interned_string_ex()
589 s = STRTAB_POS_TO_STR(&ZCSG(interned_strings), pos); in accel_find_interned_string_ex()
812 if (ZCSG(interned_strings).saved_top == NULL) { in accel_use_shm_interned_strings()
1248 …s = zend_print_long_to_buf(buf + sizeof(buf) - 1, STRTAB_STR_TO_POS(&ZCSG(interned_strings), str)); in accel_make_persistent_key()
1292 …s = zend_print_long_to_buf(buf + sizeof(buf) - 1, STRTAB_STR_TO_POS(&ZCSG(interned_strings), str)); in accel_make_persistent_key()
2892 ZCSG(interned_strings).nTableMask = in zend_accel_init_shm()
2894 ZCSG(interned_strings).nNumOfElements = 0; in zend_accel_init_shm()
2895 ZCSG(interned_strings).start = in zend_accel_init_shm()
2896 (zend_string*)((char*)&ZCSG(interned_strings) + in zend_accel_init_shm()
2900 ZEND_ASSERT(((uintptr_t)ZCSG(interned_strings).start & 0x7) == 0); /* should be 8 byte aligned */ in zend_accel_init_shm()
2902 ZCSG(interned_strings).top = in zend_accel_init_shm()
2903 ZCSG(interned_strings).start; in zend_accel_init_shm()
2904 ZCSG(interned_strings).end = in zend_accel_init_shm()
2907 …ZEND_ASSERT(((uintptr_t)ZCSG(interned_strings).end - (uintptr_t)&ZCSG(interned_strings)) / ZEND_ST… in zend_accel_init_shm()
2908 ZCSG(interned_strings).saved_top = NULL; in zend_accel_init_shm()
2910 memset((char*)&ZCSG(interned_strings) + sizeof(zend_string_table), in zend_accel_init_shm()
2912 (char*)ZCSG(interned_strings).start - in zend_accel_init_shm()
2913 ((char*)&ZCSG(interned_strings) + sizeof(zend_string_table))); in zend_accel_init_shm()
2915 *STRTAB_HASH_TO_SLOT(&ZCSG(interned_strings), 0) = STRTAB_INVALID_POS; in zend_accel_init_shm()