nuttx icon indicating copy to clipboard operation
nuttx copied to clipboard

sched/signal: reclaim sigaction blocks

Open yf13 opened this issue 8 months ago • 3 comments

Summary

Currently the sigaction objects are never reclaimed after use, thus after running ostest we will see used memory increasion.

This patch uses a configurable number of pre-allocated entries and reclaims dynamic entries so that to reduce leakage.

Impact

Used memory reduced after running ostest.

Testing

  • Checked with rv-virt/nsh and rv-virt/nsh64
  • CI checks

yf13 avatar May 27 '24 04:05 yf13