<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-06-30)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-30 Joel Sherrill <joel.sherrilL@OARcorp.com>

        PR 1472/cpukit
        * libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h,
        libcsupport/src/free.c, libcsupport/src/malloc.c,
        libcsupport/src/malloc_initialize.c, libcsupport/src/realloc.c,
        libcsupport/src/rtems_memalign.c: Remove malloc boundary code. It has
        not been used since before 4.6 and is bitrotted.
        * libcsupport/src/malloc_boundary.c: Removed.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2475&r2=text&tr2=1.2476&diff_format=h">M</a></td><td width='1%'>1.2476</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/Makefile.am.diff?r1=text&tr1=1.122&r2=text&tr2=1.123&diff_format=h">M</a></td><td width='1%'>1.123</td><td width='100%'>cpukit/libcsupport/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/include/rtems/malloc.h.diff?r1=text&tr1=1.10&r2=text&tr2=1.11&diff_format=h">M</a></td><td width='1%'>1.11</td><td width='100%'>cpukit/libcsupport/include/rtems/malloc.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/free.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h">M</a></td><td width='1%'>1.9</td><td width='100%'>cpukit/libcsupport/src/free.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/malloc.c.diff?r1=text&tr1=1.58&r2=text&tr2=1.59&diff_format=h">M</a></td><td width='1%'>1.59</td><td width='100%'>cpukit/libcsupport/src/malloc.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/malloc_boundary.c?rev=1.9&content-type=text/vnd.viewcvs-markup">R</a></td><td width='1%'><font color="#880000">1.9</font></td><td width='100%'><font color="#880000">cpukit/libcsupport/src/malloc_boundary.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/malloc_initialize.c.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>cpukit/libcsupport/src/malloc_initialize.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/realloc.c.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>cpukit/libcsupport/src/realloc.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/rtems_memalign.c.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>cpukit/libcsupport/src/rtems_memalign.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2475 rtems/cpukit/ChangeLog:1.2476
--- rtems/cpukit/ChangeLog:1.2475       Wed Jun 30 08:58:55 2010
+++ rtems/cpukit/ChangeLog      Wed Jun 30 10:36:47 2010
</font><font color='#997700'>@@ -1,3 +1,13 @@
</font><font color='#000088'>+2010-06-30    Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+       PR 1472/cpukit
+       * libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h,
+       libcsupport/src/free.c, libcsupport/src/malloc.c,
+       libcsupport/src/malloc_initialize.c, libcsupport/src/realloc.c,
+       libcsupport/src/rtems_memalign.c: Remove malloc boundary code. It has
+       not been used since before 4.6 and is bitrotted.
+       * libcsupport/src/malloc_boundary.c: Removed.
+
</font> 2010-06-30        Jennifer.Averett <Jennifer.Averett@OARcorp.com>
 
        * libcsupport/include/rtems/libio.h, libfs/Makefile.am: Added

<font color='#006600'>diff -u rtems/cpukit/libcsupport/Makefile.am:1.122 rtems/cpukit/libcsupport/Makefile.am:1.123
--- rtems/cpukit/libcsupport/Makefile.am:1.122  Tue Jun 22 15:03:41 2010
+++ rtems/cpukit/libcsupport/Makefile.am        Wed Jun 30 10:36:47 2010
</font><font color='#997700'>@@ -89,10 +89,9 @@
</font>     src/_realloc_r.c src/__brk.c src/__sbrk.c src/mallocfreespace.c \
     src/mallocinfo.c src/malloc_walk.c src/malloc_get_statistics.c \
     src/malloc_report_statistics.c src/malloc_report_statistics_plugin.c \
<font color='#880000'>-    src/malloc_statistics_helpers.c src/malloc_boundary.c \
-    src/posix_memalign.c src/rtems_memalign.c src/malloc_deferred.c \
-    src/malloc_sbrk_helpers.c src/malloc_dirtier.c src/malloc_p.h \
-    src/rtems_malloc.c
</font><font color='#000088'>+    src/malloc_statistics_helpers.c src/posix_memalign.c \
+    src/rtems_memalign.c src/malloc_deferred.c src/malloc_sbrk_helpers.c \
+    src/malloc_dirtier.c src/malloc_p.h src/rtems_malloc.c
</font> 
 PASSWORD_GROUP_C_FILES = src/getpwent.c
 

<font color='#006600'>diff -u rtems/cpukit/libcsupport/include/rtems/malloc.h:1.10 rtems/cpukit/libcsupport/include/rtems/malloc.h:1.11
--- rtems/cpukit/libcsupport/include/rtems/malloc.h:1.10        Mon Jun 21 16:13:42 2010
+++ rtems/cpukit/libcsupport/include/rtems/malloc.h     Wed Jun 30 10:36:48 2010
</font><font color='#997700'>@@ -56,20 +56,6 @@
</font> extern rtems_malloc_statistics_functions_t *rtems_malloc_statistics_helpers;
 
 /*
<font color='#880000'>- *  Malloc boundary support plugin
- */
-typedef struct {
-  void     (*initialize)(void);
-  uint32_t (*overhead)(void);
-  void     (*at_malloc)(void *, size_t);
-  void     (*at_free)(void *);
-  void     (*at_realloc)(void *, size_t);
-} rtems_malloc_boundary_functions_t;
-
-extern rtems_malloc_boundary_functions_t rtems_malloc_boundary_helpers_table;
-extern rtems_malloc_boundary_functions_t *rtems_malloc_boundary_helpers;
-
-/*
</font>  *  Malloc Heap Extension (sbrk) plugin
  */
 typedef struct {

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/free.c:1.8 rtems/cpukit/libcsupport/src/free.c:1.9
--- rtems/cpukit/libcsupport/src/free.c:1.8     Sun Nov 29 07:35:32 2009
+++ rtems/cpukit/libcsupport/src/free.c Wed Jun 30 10:36:48 2010
</font><font color='#997700'>@@ -35,21 +35,12 @@
</font>   /*
    *  Do not attempt to free memory if in a critical section or ISR.
    */
<font color='#880000'>-
</font>   if ( _System_state_Is_up(_System_state_Get()) &&
        !malloc_is_system_state_OK() ) {
       malloc_deferred_free(ptr);
       return;
   }
 
<font color='#880000'>-  #if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)
-    /*
-     *  If configured, check the boundary area
-     */
-    if ( rtems_malloc_boundary_helpers )
-      (*rtems_malloc_boundary_helpers->at_free)(ptr);
-  #endif
-
</font>   /*
    *  If configured, update the statistics
    */

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/malloc.c:1.58 rtems/cpukit/libcsupport/src/malloc.c:1.59
--- rtems/cpukit/libcsupport/src/malloc.c:1.58  Sun Nov 29 07:35:32 2009
+++ rtems/cpukit/libcsupport/src/malloc.c       Wed Jun 30 10:36:48 2010
</font><font color='#997700'>@@ -55,15 +55,6 @@
</font>     _Protected_heap_Walk( RTEMS_Malloc_Heap, 0, false );
   #endif
 
<font color='#880000'>-  #if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)
-    /*
-     *  If the support for a boundary area at the end of the heap
-     *  block allocated is turned on, then adjust the size.
-     */
-    if (rtems_malloc_boundary_helpers)
-      size += (*rtems_malloc_boundary_helpers->overhead)();
-  #endif
-
</font>   /*
    * Try to give a segment in the current heap if there is not
    * enough space then try to grow the heap.
<font color='#997700'>@@ -93,14 +84,6 @@
</font>   if ( rtems_malloc_statistics_helpers )
     (*rtems_malloc_statistics_helpers->at_malloc)(return_this);
 
<font color='#880000'>-  #if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)
-    /*
-     * If configured, set the boundary area
-     */
-    if (rtems_malloc_boundary_helpers)
-      (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size);
-  #endif
-
</font>   return return_this;
 }
 

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/malloc_initialize.c:1.11 rtems/cpukit/libcsupport/src/malloc_initialize.c:1.12
--- rtems/cpukit/libcsupport/src/malloc_initialize.c:1.11       Sun Nov 29 07:35:32 2009
+++ rtems/cpukit/libcsupport/src/malloc_initialize.c    Wed Jun 30 10:36:48 2010
</font><font color='#997700'>@@ -43,15 +43,6 @@
</font>   size_t sbrk_amount
 )
 {
<font color='#880000'>-  #if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)
-    /*
-     *  If configured, initialize the boundary support
-     */
-    if ( rtems_malloc_boundary_helpers != NULL ) {
-      (*rtems_malloc_boundary_helpers->initialize)();
-    }
-  #endif
-
</font>   /*
    *  If configured, initialize the statistics support
    */

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/realloc.c:1.6 rtems/cpukit/libcsupport/src/realloc.c:1.7
--- rtems/cpukit/libcsupport/src/realloc.c:1.6  Mon Sep 14 09:48:38 2009
+++ rtems/cpukit/libcsupport/src/realloc.c      Wed Jun 30 10:36:48 2010
</font><font color='#997700'>@@ -27,7 +27,6 @@
</font> {
   uintptr_t old_size;
   char    *new_area;
<font color='#880000'>-  uintptr_t resize;
</font> 
   MSBUMP(realloc_calls, 1);
 
<font color='#997700'>@@ -60,23 +59,9 @@
</font>   }
 
   /*
<font color='#880000'>-   *  If block boundary integrity checking is enabled, then
-   *  we need to account for the boundary memory again.
</font><font color='#000088'>+   *  Now resize it.
</font>    */
<font color='#880000'>-  resize = size;
-  #if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)
-    if (rtems_malloc_boundary_helpers)
-      resize += (*rtems_malloc_boundary_helpers->overhead)();
-  #endif
-
-  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, resize ) ) {
-    #if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)
-      /*
-       *  Successful resize.  Update the boundary on the same block.
-       */
-      if (rtems_malloc_boundary_helpers)
-        (*rtems_malloc_boundary_helpers->at_realloc)(ptr, resize);
-    #endif
</font><font color='#000088'>+  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
</font>     return ptr;
   }
 

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/rtems_memalign.c:1.3 rtems/cpukit/libcsupport/src/rtems_memalign.c:1.4
--- rtems/cpukit/libcsupport/src/rtems_memalign.c:1.3   Sun Nov 29 07:35:32 2009
+++ rtems/cpukit/libcsupport/src/rtems_memalign.c       Wed Jun 30 10:36:48 2010
</font><font color='#997700'>@@ -45,24 +45,13 @@
</font>     return EINVAL;
 
   /*
<font color='#880000'>-   *
</font>    *  If some free's have been deferred, then do them now.
    */
   malloc_deferred_frees_process();
 
<font color='#880000'>-  #if defined(RTEMS_MALLOC_BOUNDARY_HELPERS)
-    /*
-     *  If the support for a boundary area at the end of the heap
-     *  block allocated is turned on, then adjust the size.
-     */
-    if (rtems_malloc_boundary_helpers)
-      size += (*rtems_malloc_boundary_helpers->overhead)();
-  #endif
-
</font>   /*
    *  Perform the aligned allocation requested
    */
<font color='#880000'>-
</font>   return_this = _Protected_heap_Allocate_aligned(
     RTEMS_Malloc_Heap,
     size,
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>