summaryrefslogtreecommitdiff
path: root/cpukit/libcsupport/src/malloc_deferred.c (follow)
AgeCommit message (Collapse)Author
2018-11-12Add rtems_malloc() and rtems_calloc()Sebastian Huber
Close #3583.
2016-07-22score: Add debug support to chainsSebastian Huber
This helps to detect * double insert, append, prepend errors, and * get from empty chain errors.
2016-04-06malloc: Avoid memory leaks during task deleteSebastian Huber
Call _Malloc_Process_deferred_frees() owning the allocator lock to prevent deletion of the executing thread while doing the deferred frees.
2016-04-06malloc: Fix early realloc() allocationSebastian Huber
2016-03-01malloc: Fix function definitionSebastian Huber
Close #2617.
2016-02-25malloc: Add _Malloc_System_state()Sebastian Huber
Replace malloc_is_system_state_OK() with _Malloc_System_state() to allow early allocations, e.g. in bsp_start(). Here the _Thread_Executing is NULL, thus an _API_Mutex_Lock() would lead to a NULL pointer access. Move malloc() support code to general case rtems_heap_allocate_aligned_with_boundary(). Use rtems_heap_allocate_aligned_with_boundary() to avoid duplicated code.
2016-02-25malloc: Use dedicated lock for deferred freesSebastian Huber
2016-02-25malloc: Clean up "malloc_p.h" header fileSebastian Huber
2014-11-25libcsupport: malloc_is_system_state_OK()Sebastian Huber
Move system state check to malloc_is_system_state_OK().
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns
2013-07-26Include missing <rtems/score/threaddispatch.h>Sebastian Huber
2013-07-18libcsupport: Do not use _ISR_Nest_levelSebastian Huber
The _Thread_Dispatch_is_enabled() is false if _ISR_Nest_level is not equal to zero.
2013-06-14score: Add and use _Thread_Dispatch_is_enabled()Sebastian Huber
Delete _Thread_Dispatch_in_critical_section() and _Thread_Is_dispatching_enabled().
2012-12-11libcsupport: GCI Doxygen Task #7Alex Ivanov
http://www.google-melange.com/gci/task/view/google/gci2012/7975223
2012-10-25libcsupport: malloc_deferred_frees_initialize()Sebastian Huber
Remove this function and statically initialize RTEMS_Malloc_GC_list.
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2011-04-212011-04-21 Jennifer Averett <Jennifer.Averett@OARcorp.comJennifer Averett
PR 1777/cpukit * libcsupport/src/malloc_deferred.c, libcsupport/src/realloc.c, score/Makefile.am, score/cpu/lm32/irq.c, score/cpu/nios2/irq.c, score/include/rtems/score/coremutex.h, score/include/rtems/score/thread.h, score/inline/rtems/score/thread.inl, score/src/heapfree.c, score/src/pheapwalk.c, score/src/smp.c, score/src/threaddispatch.c: Consolidated access to _Thread_Dispatch_disable_level. * score/src/threaddisabledispatch.c, score/src/threadenabledispatch.c: New files.
2008-09-01Convert using "bool".Ralf Corsepius
2008-07-032008-07-03 Chris Johns <chrisj@rtems.org>Chris Johns
* cpukit/libcsupport/include/chain.h: Removed. Use the SAPI interface that is supported. * cpukit/libcsupport/Makefile.am, cpukit/libcsupport/preinstall.am: Remove chain.h header references. * cpukit/sapi/include/rtems/chain.h, cpukit/sapi/inline/rtems/chain.inl: New. A supported chains interface. * cpukit/sapi/Makefile.am, cpukit/sapi/preinstall.am: Updated to include the new chains interface. * cpukit/libfs/src/imfs/imfs.h, cpukit/libfs/src/imfs/imfs_creat.c, cpukit/libfs/src/imfs/imfs_debug.c, cpukit/libfs/src/imfs/imfs_directory.c, cpukit/libfs/src/imfs/imfs_fsunmount.c, cpukit/libfs/src/imfs/imfs_getchild.c, cpukit/libfs/src/imfs/imfs_load_tar.c, cpukit/libfs/src/imfs/imfs_rmnod.c, cpukit/libfs/src/imfs/memfile.c, cpukit/libfs/src/nfsclient/src/nfs.c, cpukit/libcsupport/include/rtems/libio.h, cpukit/libcsupport/src/malloc_deferred.c, cpukit/libcsupport/src/mount.c, cpukit/libcsupport/src/privateenv.c, cpukit/libcsupport/src/unmount.c: Change to the new chains interface. * cpukit/libcsupport/src/malloc_boundary.c: Remove warning.
2008-01-092008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill
* libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/free.c, libcsupport/src/malloc.c, libcsupport/src/malloc_deferred.c, libcsupport/src/malloc_initialize.c, libcsupport/src/malloc_p.h, libcsupport/src/malloc_sbrk_helpers.c, libcsupport/src/posix_memalign.c: Place all deferred free code and place it in subroutines. Add plugin for dirtying allocated memory to assist in debugging. Clean up comments and spacing as needed. * libcsupport/src/malloc_dirtier.c: New file.
2007-12-192007-12-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill
* libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/free.c, libcsupport/src/malloc.c, libcsupport/src/malloc_p.h, libcsupport/src/malloc_report_statistics_plugin.c, libmisc/shell/shell.c, libmisc/shell/shell.h, score/src/objectinitializeinformation.c: Add posix_memalign. Split out management of deferred frees to subroutines. * libcsupport/src/malloc_deferred.c, libcsupport/src/posix_memalign.c: New files.