nuttx/mm/mm_heap
Gregory Nutt 9568600ab1 Squashed commit of the following:
This commit backs out most of commit b4747286b1.  That change was added because sem_wait() would sometimes cause cancellation points inappropriated.  But with these recent changes, nxsem_wait() is used instead and it is not a cancellation point.

    In the OS, all calls to sem_wait() changed to nxsem_wait().  nxsem_wait() does not return errors via errno so each place where nxsem_wait() is now called must not examine the errno variable.

    In all OS functions (not libraries), change sem_wait() to nxsem_wait().  This will prevent the OS from creating bogus cancellation points and from modifying the per-task errno variable.

    sched/semaphore:  Add the function nxsem_wait().  This is a new internal OS interface.  It is functionally equivalent to sem_wait() except that (1) it is not a cancellation point, and (2) it does not set the per-thread errno value on return.
2017-10-04 15:22:27 -06:00
..
Make.defs Again I forget to add a file needed in a previous commit 2014-09-22 10:59:00 -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 Replace all occurrences of vdbg with vinfo 2016-06-11 11:59:51 -06:00
mm_initialize.c Add some comments. 2016-11-05 09:44:29 -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 audio/, crypto/, libnx/, and mm/: Change some err() ERRORS to warn() WARNINGS or info() 2016-06-12 09:46:23 -06:00
mm_memalign.c Remove some empty file section section header comments 2016-02-17 18:57:35 -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 Squashed commit of the following: 2017-10-04 15:22:27 -06:00
mm_shrinkchunk.c Remove some empty file section section header comments 2016-02-17 18:57:35 -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