summaryrefslogtreecommitdiff
path: root/sys/src/9/kw
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-08-17 17:38:46 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-08-17 17:38:46 +0000
commit91f79ce9fab7c9920b6f331ca074d58c17755fc9 (patch)
tree66d35f064131f18746042a05773ca1ab61e29fa9 /sys/src/9/kw
parentc8e25d2a18c0395431abc5818a1d2f0561b0181f (diff)
kernel: allocate notes in heap
de-bloat the proc structure by allocating notes with on the heap instead of embedding them in the proc structure. This saves around 640 bytes per process.
Diffstat (limited to 'sys/src/9/kw')
-rw-r--r--sys/src/9/kw/syscall.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/9/kw/syscall.c b/sys/src/9/kw/syscall.c
index d97aacfa5..47eb221a9 100644
--- a/sys/src/9/kw/syscall.c
+++ b/sys/src/9/kw/syscall.c
@@ -81,13 +81,13 @@ noted(Ureg* cur, uintptr arg0)
cur->r0 = (uintptr)nf->arg0;
break;
default:
- up->lastnote.flag = NDebug;
+ up->lastnote->flag = NDebug;
/*FALLTHROUGH*/
case NDFLT:
qunlock(&up->debug);
- if(up->lastnote.flag == NDebug)
- pprint("suicide: %s\n", up->lastnote.msg);
- pexit(up->lastnote.msg, up->lastnote.flag != NDebug);
+ if(up->lastnote->flag == NDebug)
+ pprint("suicide: %s\n", up->lastnote->msg);
+ pexit(up->lastnote->msg, up->lastnote->flag != NDebug);
}
}