diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-09 21:08:36 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-09 21:08:36 +0000 |
commit | 635865aefd842e94e32856b8d32fbcacb52d78ba (patch) | |
tree | 0f72fdb1b2a42b01744451e124b46bac24705281 /cpukit/libcsupport/src/malloc_p.h | |
parent | 2008-01-09 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-635865aefd842e94e32856b8d32fbcacb52d78ba.tar.bz2 |
2008-01-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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.
Diffstat (limited to 'cpukit/libcsupport/src/malloc_p.h')
-rw-r--r-- | cpukit/libcsupport/src/malloc_p.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cpukit/libcsupport/src/malloc_p.h b/cpukit/libcsupport/src/malloc_p.h index a505d920a2..10642ba46a 100644 --- a/cpukit/libcsupport/src/malloc_p.h +++ b/cpukit/libcsupport/src/malloc_p.h @@ -38,7 +38,6 @@ * Basic management data */ extern Heap_Control RTEMS_Malloc_Heap; -extern Chain_Control RTEMS_Malloc_GC_list; /* * Malloc Statistics Structure @@ -48,13 +47,9 @@ extern rtems_malloc_statistics_t rtems_malloc_statistics; #define MSBUMP(_f,_n) rtems_malloc_statistics._f += (_n) /* - * Dirty memory plugin - */ -#define MALLOC_DIRTY - -/* * Process deferred free operations */ boolean malloc_is_system_state_OK(void); -void malloc_process_deferred_frees(void); +void malloc_deferred_frees_initialize(void); +void malloc_deferred_frees_process(void); void malloc_defer_free(void *); |