}
pre_size = ZEND_ALIGNED_SIZE(sizeof(zend_smm_shared_globals)) + ZEND_ALIGNED_SIZE(sizeof(zend_shared_segment)) + ZEND_ALIGNED_SIZE(sizeof(void *)) + ZEND_ALIGNED_SIZE(sizeof(int));
- /* Map only part of SHM to have access opcache shared globals */
+ /* Map only part of SHM to have access to opcache shared globals */
mapping_base = MapViewOfFileEx(memfile, FILE_MAP_ALL_ACCESS, 0, 0, pre_size + ZEND_ALIGNED_SIZE(sizeof(zend_accel_shared_globals)), NULL);
if (mapping_base == NULL) {
err = GetLastError();
zend_shared_alloc_lock_win32();
/* Mapping retries: When Apache2 restarts, the parent process startup routine
- can be called before the child process is killed. In this case, the map will fail
+ can be called before the child process is killed. In this case, the mapping will fail
and we have to sleep some time (until the child releases the mapping object) and retry.*/
do {
memfile = OpenFileMapping(FILE_MAP_READ|FILE_MAP_WRITE|FILE_MAP_EXECUTE, 0, create_name_with_username(ACCEL_FILEMAP_NAME));
return ALLOC_FAILURE;
}
- /* Starting from windows Vista, heap randomization occurs which might cause our mapping base to
- be taken (fail to map). So under Vista, we try to map into a hard coded predefined addresses
+ /* Starting from Windows Vista, heap randomization occurs which might cause our mapping base to
+ be taken (fail to map). So we try to map into one of the hard coded predefined addresses
in high memory. */
if (!ZCG(accel_directives).mmap_base || !*ZCG(accel_directives).mmap_base) {
wanted_mapping_base = vista_mapping_base_set;
} else {
char *s = ZCG(accel_directives).mmap_base;
- /* skip leading 0x, %p assumes hexdeciaml format anyway */
+ /* skip leading 0x, %p assumes hexdecimal format anyway */
if (*s == '0' && *(s + 1) == 'x') {
s += 2;
}