kernel: try freebroken() *before* killbig() (thanks aiju)
This commit is contained in:
parent
592b8d5b35
commit
76f21ca715
1 changed files with 2 additions and 2 deletions
|
@ -164,8 +164,8 @@ pager(void*)
|
||||||
|
|
||||||
if(swapimage.c == nil || swapalloc.free == 0){
|
if(swapimage.c == nil || swapalloc.free == 0){
|
||||||
Killbig:
|
Killbig:
|
||||||
|
if(!freebroken())
|
||||||
killbig("out of memory");
|
killbig("out of memory");
|
||||||
freebroken(); /* can use the memory */
|
|
||||||
sched();
|
sched();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue