ref: 76f21ca715d99dd533053c8465ecdd16915fadbc
parent: 592b8d5b3528ba34f5bd0fffebdffcac1c9450cd
author: cinap_lenrek <[email protected]>
date: Fri Aug 14 10:45:19 EDT 2015
kernel: try freebroken() *before* killbig() (thanks aiju)
--- a/sys/src/9/port/swap.c
+++ b/sys/src/9/port/swap.c
@@ -164,8 +164,8 @@
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;
}