git: 9front

Download patch

ref: 6f5818c32371733a41d9b620947f72873fb5b597
parent: f84cb95829b2610ca3fd8a8f02cda62eb41efc88
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Jun 16 15:15:04 EDT 2025

kernel: have smalloc()/secalloc() whine when out of memory

--- a/sys/src/9/port/alloc.c
+++ b/sys/src/9/port/alloc.c
@@ -193,7 +193,7 @@
 
 	while((v = poolalloc(mainmem, size+Npadlong*sizeof(ulong))) == nil){
 		if(!waserror()){
-			resrcwait(nil);
+			resrcwait("no memory for smalloc");
 			poperror();
 		}
 	}
@@ -297,7 +297,7 @@
 
 	while((v = poolalloc(secrmem, size+Npadlong*sizeof(ulong))) == nil){
 		if(!waserror()){
-			resrcwait(nil);
+			resrcwait("no memory for secalloc");
 			poperror();
 		}
 	}
--