forked from Imagelibrary/rtems
libcsupport: malloc_deferred_frees_initialize()
Remove this function and statically initialize RTEMS_Malloc_GC_list.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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 *);
|
||||
|
||||
Reference in New Issue
Block a user