diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-09-03 17:30:04 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-09-03 17:30:04 +0000 |
commit | 3e115487969570445a58a5a351a7bf0e0ab5fc21 (patch) | |
tree | 98d03736051c50aee5b5b59250f35000532a8fd8 /sys/src/9/port/sysproc.c | |
parent | 99529b80a3bbe35c5cd5dadf5f106632a2449e84 (diff) |
kernel: half NERR, refcount Note's to avoid excessive allocations for postnotepg()
Half NERR stack to 32.
When posing a note to a large group, avoid allocating Notes
for each individual process, but post the reference instread.
factor out process interruption into procinterrupt().
Avoid allocation of notes in alarmkproc, just posting the
same note to everyone.
Diffstat (limited to 'sys/src/9/port/sysproc.c')
-rw-r--r-- | sys/src/9/port/sysproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/sysproc.c b/sys/src/9/port/sysproc.c index 16bcf90a1..c948cfcba 100644 --- a/sys/src/9/port/sysproc.c +++ b/sys/src/9/port/sysproc.c @@ -600,7 +600,7 @@ sysexec(va_list list) up->setargs = 0; freenotes(up); - free(up->lastnote); + freenote(up->lastnote); up->lastnote = nil; up->notify = nil; up->notified = 0; |