Re: [PATCH 2/2] malloc: Make deferred free support optional

2020-07-23 Thread Gedare Bloom
looks good, other than my comment on 1/2. On Thu, Jul 23, 2020 at 6:21 AM Sebastian Huber wrote: > > Only include the deferred free support if free() is actually used by the > application. > > The free() implementation in RTEMS supports that allocated memory is > freed in interrupt context. Sinc

[PATCH 2/2] malloc: Make deferred free support optional

2020-07-23 Thread Sebastian Huber
Only include the deferred free support if free() is actually used by the application. The free() implementation in RTEMS supports that allocated memory is freed in interrupt context. Since the heap is protected by a mutex, the frees issued in interrupt context cannot immediately be freed to the h

[PATCH 2/2] malloc: Make deferred free support optional

2020-04-08 Thread Sebastian Huber
Only include the deferred free support if free() is actually used by the application. --- cpukit/libcsupport/src/free.c| 43 cpukit/libcsupport/src/malloc_deferred.c | 40 +++-- cpukit/libcsupport/src/malloc_p.h| 2 -- c