Changeset 3c1be2f in rtems


Ignore:
Timestamp:
Jul 8, 2010, 8:09:56 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
843ad7b
Parents:
c33c353
Message:

2010-07-08 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/malloc_initialize.c: Clean up sbrk path now that a test is available.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rc33c353 r3c1be2f  
     12010-07-08      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libcsupport/src/malloc_initialize.c: Clean up sbrk path now that a
     4        test is available.
     5
    162010-07-07      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/libcsupport/src/malloc_initialize.c

    rc33c353 r3c1be2f  
    4646  /*
    4747   *  If configured, initialize the statistics support
    48    */
     48  */
    4949  if ( rtems_malloc_statistics_helpers != NULL ) {
    5050    (*rtems_malloc_statistics_helpers->initialize)();
     
    6060   */
    6161  if ( rtems_malloc_sbrk_helpers != NULL ) {
    62     void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
     62    heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
    6363      heap_begin,
    6464      sbrk_amount
    6565    );
    66 
    67     heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin;
    68     heap_begin = new_heap_begin;
     66    heap_size  = (uintptr_t) sbrk_amount;
    6967  }
    7068
Note: See TracChangeset for help on using the changeset viewer.