Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_map.c
Show First 20 Lines • Show All 3,634 Lines • ▼ Show 20 Lines | if (vm_map_lock_upgrade(map)) | ||||
goto Retry; | goto Retry; | ||||
stack_entry->avail_ssize = max_grow; | stack_entry->avail_ssize = max_grow; | ||||
vm_map_unlock(map); | vm_map_unlock(map); | ||||
return (KERN_NO_SPACE); | return (KERN_NO_SPACE); | ||||
} | } | ||||
is_procstack = (addr >= (vm_offset_t)vm->vm_maxsaddr) ? 1 : 0; | is_procstack = (addr >= (vm_offset_t)vm->vm_maxsaddr && | ||||
addr < (vm_offset_t)p->p_sysent->sv_usrstack) ? 1 : 0; | |||||
kib: Excessive (). Next line as well. | |||||
/* | /* | ||||
* If this is the main process stack, see if we're over the stack | * If this is the main process stack, see if we're over the stack | ||||
* limit. | * limit. | ||||
*/ | */ | ||||
if (is_procstack && (ctob(vm->vm_ssize) + grow_amount > stacklim)) { | if (is_procstack && (ctob(vm->vm_ssize) + grow_amount > stacklim)) { | ||||
vm_map_unlock_read(map); | vm_map_unlock_read(map); | ||||
return (KERN_NO_SPACE); | return (KERN_NO_SPACE); | ||||
▲ Show 20 Lines • Show All 635 Lines • Show Last 20 Lines |
Excessive (). Next line as well.