nuttx/mm/mm_heap
Xiang Xiao 6a3c2aded6 Fix wait loop and void cast (#24)
* Simplify EINTR/ECANCEL error handling

1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx

* Unify the void cast usage

1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -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 mm/mm_heap/mm_calloc.c: Verify that the number of elements times the size of an element will not overflow type size_t. This is required by the SEI CERT C coding style and resolves anonymous Bitbucket Issue #139 2019-01-07 16:13:48 -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/mm_heap/mm_sbrk.c: Fix backward conditional test. Should call mm_initialize() when brkaddr equal zero 2019-01-26 07:07:42 -06:00
mm_sem.c Fix wait loop and void cast (#24) 2020-01-02 10:54:43 -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