Subject: CVS commit: syssrc/sys
To: None <source-changes@netbsd.org>
From: Chuck Silvers <chs@netbsd.org>
List: source-changes
Date: 09/15/2002 19:54:33
Module Name: syssrc
Committed By: chs
Date: Sun Sep 15 16:54:32 UTC 2002
Modified Files:
syssrc/sys/kern: kern_malloc.c
syssrc/sys/uvm: uvm_amap.c uvm_amap.h uvm_extern.h uvm_km.c uvm_map.c
Log Message:
add a new km flag UVM_KMF_CANFAIL, which causes uvm_km_kmemalloc() to
return failure if swap is full and there are no free physical pages.
have malloc() use this flag if M_CANFAIL is passed to it.
use M_CANFAIL to allow amap_extend() to fail when memory is scarce.
this should prevent most of the remaining hangs in low-memory situations.
To generate a diff of this commit:
cvs rdiff -r1.72 -r1.73 syssrc/sys/kern/kern_malloc.c
cvs rdiff -r1.44 -r1.45 syssrc/sys/uvm/uvm_amap.c
cvs rdiff -r1.17 -r1.18 syssrc/sys/uvm/uvm_amap.h
cvs rdiff -r1.71 -r1.72 syssrc/sys/uvm/uvm_extern.h
cvs rdiff -r1.57 -r1.58 syssrc/sys/uvm/uvm_km.c
cvs rdiff -r1.118 -r1.119 syssrc/sys/uvm/uvm_map.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.