View | Details | Raw Unified | Return to bug 32659
Collapse All | Expand All

(-)vm_glue.c (-10 / +7 lines)
Lines 482-498 Link Here
482
			}
482
			}
483
			vm_map_unlock(&vm->vm_map);
483
			vm_map_unlock(&vm->vm_map);
484
			/*
484
			/*
485
			 * If the process has been asleep for awhile and had
485
			 * All possibilities of sparing the process its
486
			 * most of its pages taken away already, swap it out.
486
			 * grim fate have been exhausted above, so bow
487
			 * to the inevitable now and swap it out.
487
			 */
488
			 */
488
			if ((action & VM_SWAP_NORMAL) ||
489
			swapout(p);
489
				((action & VM_SWAP_IDLE) &&
490
			vmspace_free(vm);
490
				 (p->p_slptime > swap_idle_threshold2))) {
491
			didswap++;
491
				swapout(p);
492
			goto retry;
492
				vmspace_free(vm);
493
				didswap++;
494
				goto retry;
495
			}
496
		}
493
		}
497
	}
494
	}
498
	/*
495
	/*

Return to bug 32659