Changeset 3b978e19 in rtems


Ignore:
Timestamp:
Aug 9, 2012, 8:36:25 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
6ccfe72
Parents:
64d6f19
git-author:
Sebastian Huber <sebastian.huber@…> (08/09/12 08:36:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/25/12 12:54:05)
Message:

libcsupport: malloc_deferred_frees_initialize()

Remove this function and statically initialize RTEMS_Malloc_GC_list.

Location:
cpukit/libcsupport/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/malloc_deferred.c

    r64d6f19 r3b978e19  
    2121#include "malloc_p.h"
    2222
    23 rtems_chain_control RTEMS_Malloc_GC_list;
     23RTEMS_CHAIN_DEFINE_EMPTY(RTEMS_Malloc_GC_list);
    2424
    2525bool malloc_is_system_state_OK(void)
     
    3232
    3333  return true;
    34 }
    35 
    36 void malloc_deferred_frees_initialize(void)
    37 {
    38   rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list);
    3934}
    4035
  • cpukit/libcsupport/src/malloc_initialize.c

    r64d6f19 r3b978e19  
    4848    (*rtems_malloc_statistics_helpers->initialize)();
    4949  }
    50 
    51   /*
    52    *  Initialize the garbage collection list to start with nothing on it.
    53    */
    54   malloc_deferred_frees_initialize();
    5550
    5651  /*
  • cpukit/libcsupport/src/malloc_p.h

    r64d6f19 r3b978e19  
    3939 */
    4040bool malloc_is_system_state_OK(void);
    41 void malloc_deferred_frees_initialize(void);
    4241void malloc_deferred_frees_process(void);
    4342void malloc_deferred_free(void *);
Note: See TracChangeset for help on using the changeset viewer.