source: rtems/cpukit/libcsupport/src/malloc_dirtier.c @ 92119ed

4.115
Last change on this file since 92119ed was 635865ae, checked in by Joel Sherrill <joel.sherrill@…>, on 01/09/08 at 21:08:36

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

  • 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.
  • Property mode set to 100644
File size: 559 bytes
Line 
1/*
2 *  RTEMS Malloc Family -- Dirty Memory from Malloc
3 *
4 *  COPYRIGHT (c) 1989-2007.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <rtems.h>
19#include <rtems/malloc.h>
20#include "malloc_p.h"
21
22#include <errno.h>
23
24void rtems_malloc_dirty_memory(
25  void   *start,
26  size_t  size
27)
28{
29  (void) memset(start, 0xCF, size);
30}
Note: See TracBrowser for help on using the repository browser.