Changeset 7fbe6805 in rtems


Ignore:
Timestamp:
Jan 9, 2008, 9:24:30 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
4d320062
Parents:
8daaa215
Message:

2008-01-09 Joel Sherrill <joel.sherrill@…>

  • libcsupport/Makefile.am: Add src/malloc_dirtier.c.
  • libcsupport/include/rtems/malloc.h: Add malloc dirty support.
  • libcsupport/src/malloc_p.h: Correct prototype.
Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r8daaa215 r7fbe6805  
     12008-01-09      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libcsupport/Makefile.am: Add src/malloc_dirtier.c.
     4        * libcsupport/include/rtems/malloc.h: Add malloc dirty support.
     5        * libcsupport/src/malloc_p.h: Correct prototype.
     6
    172008-01-09      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • cpukit/libcsupport/Makefile.am

    r8daaa215 r7fbe6805  
    8585   src/malloc_report_statistics.c src/malloc_report_statistics_plugin.c \
    8686   src/malloc_statistics_helpers.c src/malloc_boundary.c src/posix_memalign.c \
    87    src/malloc_deferred.c src/malloc_sbrk_helpers.c
     87   src/malloc_deferred.c src/malloc_sbrk_helpers.c src/malloc_dirtier.c
    8888
    8989PASSWORD_GROUP_C_FILES = src/getpwent.c
  • cpukit/libcsupport/include/rtems/malloc.h

    r8daaa215 r7fbe6805  
    7777extern rtems_malloc_sbrk_functions_t *rtems_malloc_sbrk_helpers;
    7878
     79/*
     80 * Malloc Plugin to Dirty Memory at Allocation Time
     81 */
     82typedef void (*rtems_malloc_dirtier_t)(void *, size_t);
     83extern rtems_malloc_dirtier_t *rtems_malloc_dirty_helper;
     84
     85/** @brief Dirty memory function
     86 * 
     87 *  This method fills the specified area with a non-zero pattern
     88 *  to aid in debugging programs which do not initialize their
     89 *  memory allocated from the heap.
     90 */
     91void rtems_malloc_dirty_memory(
     92  void   *start,
     93  size_t  size
     94);
     95
    7996/** @brief Print Malloc Statistic Usage Report
    8097 *
  • cpukit/libcsupport/src/malloc_p.h

    r8daaa215 r7fbe6805  
    5353void malloc_deferred_frees_initialize(void);
    5454void malloc_deferred_frees_process(void);
    55 void malloc_defer_free(void *);
     55void malloc_deferred_free(void *);
Note: See TracChangeset for help on using the changeset viewer.