libcsupport: malloc_deferred_frees_initialize()

Remove this function and statically initialize RTEMS_Malloc_GC_list.
This commit is contained in:
Sebastian Huber
2012-08-09 10:36:25 +02:00
parent 64d6f192c9
commit 3b978e190d
3 changed files with 1 additions and 12 deletions

View File

@@ -20,7 +20,7 @@
#include "malloc_p.h"
rtems_chain_control RTEMS_Malloc_GC_list;
RTEMS_CHAIN_DEFINE_EMPTY(RTEMS_Malloc_GC_list);
bool malloc_is_system_state_OK(void)
{
@@ -33,11 +33,6 @@ bool malloc_is_system_state_OK(void)
return true;
}
void malloc_deferred_frees_initialize(void)
{
rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list);
}
void malloc_deferred_frees_process(void)
{
rtems_chain_node *to_be_freed;

View File

@@ -48,11 +48,6 @@ void RTEMS_Malloc_Initialize(
(*rtems_malloc_statistics_helpers->initialize)();
}
/*
* Initialize the garbage collection list to start with nothing on it.
*/
malloc_deferred_frees_initialize();
/*
* Initialize the optional sbrk support for extending the heap
*/

View File

@@ -38,6 +38,5 @@ extern rtems_malloc_statistics_t rtems_malloc_statistics;
* Process deferred free operations
*/
bool malloc_is_system_state_OK(void);
void malloc_deferred_frees_initialize(void);
void malloc_deferred_frees_process(void);
void malloc_deferred_free(void *);