xiaoxiang781216 commented on PR #12406:
URL: https://github.com/apache/nuttx/pull/12406#issuecomment-2154821240

   > @xiaoxiang781216, sorry for my late response as I didn't see inline 
comments from `gh` command line.
   > 
   > would you teach a use case where `static-plus-dynamic` approach is 
improper but `never return` approach does a better job?
   
   If the system hit a peak value, it may likely hit again in the future. So, 
it may fine to not return the memory to heap.
   
   > I don't quite understand why we need `never return` designin upstream as 
it gives user apps chances to exhaust the system. If a system wants to avoid 
frequent small sized alloc/free operations from heap, pre-allocation shall help.
   
   but you mayn't know how much memory need be preserved in all case. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to