change log for rtems (2011-07-01)

Sebastian Huber sebastian.huber at embedded-brains.de
Sun Jul 3 17:49:21 UTC 2011


On 01/07/11 21:11, rtems-vc at rtems.org wrote:
> diff -u rtems/cpukit/libcsupport/src/malloc_initialize.c:1.14 rtems/cpukit/libcsupport/src/malloc_initialize.c:1.15
> --- rtems/cpukit/libcsupport/src/malloc_initialize.c:1.14	Wed Aug 25 09:30:01 2010
> +++ rtems/cpukit/libcsupport/src/malloc_initialize.c	Fri Jul  1 13:23:09 2011
> @@ -45,7 +45,7 @@
>   {
>     /*
>      *  If configured, initialize the statistics support
> -  */
> +   */
>     if ( rtems_malloc_statistics_helpers != NULL ) {
>       (*rtems_malloc_statistics_helpers->initialize)();
>     }
> @@ -59,11 +59,13 @@
>      *  Initialize the optional sbrk support for extending the heap
>      */
>     if ( rtems_malloc_sbrk_helpers != NULL ) {
> -    heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
> +    void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
>         heap_begin,
>         sbrk_amount
>       );
> -    heap_size  = (uintptr_t) sbrk_amount;
> +
> +    heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
> +    heap_begin = new_heap_begin;

With this change libtests/malloc04 fails.



More information about the vc mailing list