vm_fault.c (3374) | vm_fault.c (3446) |
---|---|
1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 1994 David Greenman 7 * All rights reserved. 8 * --- 52 unchanged lines hidden (view full) --- 61 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 62 * School of Computer Science 63 * Carnegie Mellon University 64 * Pittsburgh PA 15213-3890 65 * 66 * any improvements or extensions that they make and grant Carnegie the 67 * rights to redistribute these changes. 68 * | 1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1994 John S. Dyson 5 * All rights reserved. 6 * Copyright (c) 1994 David Greenman 7 * All rights reserved. 8 * --- 52 unchanged lines hidden (view full) --- 61 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 62 * School of Computer Science 63 * Carnegie Mellon University 64 * Pittsburgh PA 15213-3890 65 * 66 * any improvements or extensions that they make and grant Carnegie the 67 * rights to redistribute these changes. 68 * |
69 * $Id: vm_fault.c,v 1.4 1994/08/06 09:15:37 davidg Exp $ | 69 * $Id: vm_fault.c,v 1.5 1994/10/05 09:48:42 davidg Exp $ |
70 */ 71 72/* 73 * Page fault handling module. 74 */ 75 76#include <sys/param.h> 77#include <sys/systm.h> --- 247 unchanged lines hidden (view full) --- 325 if (swap_pager_full && !object->shadow && (!object->pager || 326 (object->pager && object->pager->pg_type == PG_SWAP && 327 !vm_pager_has_page(object->pager, offset+object->paging_offset)))) { 328 if (vaddr < VM_MAXUSER_ADDRESS && curproc && curproc->p_pid >= 48) /* XXX */ { 329 printf("Process %d killed by vm_fault -- out of swap\n", curproc->p_pid); 330 psignal(curproc, SIGKILL); 331 curproc->p_estcpu = 0; 332 curproc->p_nice = PRIO_MIN; | 70 */ 71 72/* 73 * Page fault handling module. 74 */ 75 76#include <sys/param.h> 77#include <sys/systm.h> --- 247 unchanged lines hidden (view full) --- 325 if (swap_pager_full && !object->shadow && (!object->pager || 326 (object->pager && object->pager->pg_type == PG_SWAP && 327 !vm_pager_has_page(object->pager, offset+object->paging_offset)))) { 328 if (vaddr < VM_MAXUSER_ADDRESS && curproc && curproc->p_pid >= 48) /* XXX */ { 329 printf("Process %d killed by vm_fault -- out of swap\n", curproc->p_pid); 330 psignal(curproc, SIGKILL); 331 curproc->p_estcpu = 0; 332 curproc->p_nice = PRIO_MIN; |
333 setpriority(curproc); | 333 resetpriority(curproc); |
334 } 335 } 336 337 /* 338 * Allocate a new page for this object/offset 339 * pair. 340 */ 341 --- 969 unchanged lines hidden --- | 334 } 335 } 336 337 /* 338 * Allocate a new page for this object/offset 339 * pair. 340 */ 341 --- 969 unchanged lines hidden --- |