kernel: try freebroken() *before* killbig() (thanks aiju)

This commit is contained in:
cinap_lenrek 2015-08-14 14:45:19 +02:00
parent 592b8d5b35
commit 76f21ca715

View file

@ -164,8 +164,8 @@ pager(void*)
if(swapimage.c == nil || swapalloc.free == 0){
Killbig:
killbig("out of memory");
freebroken(); /* can use the memory */
if(!freebroken())
killbig("out of memory");
sched();
continue;
}