nuttx/mm/mm_heap
Gregory Nutt f37202cbc0 This is a candidate replacement for the reverted change 91aa26774b
This change adds a check to mm_trysemaphore() (the root implementation of both kmm_trysemaphore() and umm_trysemaphore()).  It checks if the that task that is apparently executing is marked as RUNNING.  If not, how could the non-running task be trying to get the MM semaphore?  I think only in the exact scenario that Eunbong Song has described.

So I think the solution should provide the same protection as 91aa26774b but without the horrific consequences to memory usage.
2018-12-20 10:19:52 -06:00
..
Make.defs mm/: add mm_heapmember function and reimplement kmm_heapmember base on mm_heapmember since this function is very useful if multiple heaps exist. 2018-08-23 09:38:49 -06:00
mm_addfreechunk.c Remove some empty file section section header comments 2016-02-17 18:57:35 -06:00
mm_brkaddr.c Remove some empty file section section header comments 2016-02-17 18:57:35 -06:00
mm_calloc.c Remove some empty file section section header comments 2016-02-17 18:57:35 -06:00
mm_extend.c Silence some warnings 2016-05-26 14:06:13 -04:00
mm_free.c Merged in paimonen/nuttx/pullreq_libc_libnx_updates (pull request #757) 2018-11-12 15:36:35 +00:00
mm_heapmember.c mm/: add mm_heapmember function and reimplement kmm_heapmember base on mm_heapmember since this function is very useful if multiple heaps exist. 2018-08-23 09:38:49 -06:00
mm_initialize.c Standardization of some function headers. 2018-03-13 09:52:27 -06:00
mm_mallinfo.c mm_mallinfo: do heap end debug assert check with heap semaphore held 2017-08-03 10:01:26 -06:00
mm_malloc.c Merged in paimonen/nuttx/pullreq_libc_libnx_updates (pull request #757) 2018-11-12 15:36:35 +00:00
mm_memalign.c mm/mm-heap: memalign: fix heap corruption caused by using unaligned chuck size. Unaligned nodes generated by memalign later cause heap corruptions when nodes are shrink further (for example, 24 bytes -> 8 bytes, when alignment is 16 bytes). 2017-10-24 15:35:52 -06:00
mm_realloc.c realloc(): When realloc() has to fall back to calling malloc(), size including overhead was being provided to malloc(), causing a slightly larger allocation than needed. Noted by initialkjc@yahoo.com 2017-03-28 07:23:46 -06:00
mm_sbrk.c mm/: Remove dangling space at the end of lines. 2017-06-28 13:31:21 -06:00
mm_sem.c This is a candidate replacement for the reverted change 91aa26774b 2018-12-20 10:19:52 -06:00
mm_shrinkchunk.c mm/mm-heap: memalign: fix heap corruption caused by using unaligned chuck size. Unaligned nodes generated by memalign later cause heap corruptions when nodes are shrink further (for example, 24 bytes -> 8 bytes, when alignment is 16 bytes). 2017-10-24 15:35:52 -06:00
mm_size2ndx.c Remove some empty file section section header comments 2016-02-17 18:57:35 -06:00
mm_zalloc.c waitpid: CRITICAL BUGFIX. Add a reference counting mechansim to prevent wait from using stale memory that was freed by the exiting task 2015-12-22 11:48:17 -06:00