On March 26, 2023 5:26:29 PM MDT, andy pugh <bodge...@gmail.com> wrote:
>It's a tempting thing to do, it keeps the data structures neat, and means
>that you don't have to free on exit, as the whole HAL memory is freed on
>exit.

Non-hal memory (eg from malloc) is also freed when the process exits (it's more 
complicated for kernel mode realtime components, maybe that's what you meant).


>Is using hal_malloc for all your component data bad? Or should we accept it
>for the convenience?

I'd prefer if we used hal memory for things that need to be in hal, and used 
non-hal memory for everything else.

But I don't intend to clean up all the violations of this preference, so my 
opinion doesn't count for much.


-- 
Sebastian Kuzminsky


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to