Changeset 493e405 in rtems for cpukit/score/src/heap.c


Ignore:
Timestamp:
Sep 12, 2007, 8:11:33 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
98e398cb
Parents:
8393f3a
Message:

2007-09-12 Sergei Organov <osv@…>

PR 1258/rtems

  • cpukit/score/src/heapallocatealigned.c (block_allocate): New routine.
  • cpukit/score/src/heapallocatealigned.c (_Heap_Allocate_aligned): Use block_allocate() instead of _Heap_Block_allocate(). Replace _Heap_Head(the_heap)->next with equivalent _Heap_First(the_heap).
  • cpukit/score/src/heap.c (_Heap_Allocate): fix comments according to changed block split strategy in _Heap_Allocate_aligned().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/heap.c

    r8393f3a r493e405  
    6666 *            +--------------------------------+ <- end = begin + size
    6767 *
    68  *  This is what a heap looks like after first allocation of SIZE bytes.
    69  *  BSIZE stands for SIZE + 4 aligned up on 'page_size' boundary if allocation
    70  *  has been performed by _Heap_Allocate(). If allocation has been performed
    71  *  by _Heap_Allocate_aligned(), the block size BSIZE is defined differently
    72  *  (see 'heapallocatealigned.c' for details).
     68 *  Below is what a heap looks like after first allocation of SIZE bytes using
     69 *  _Heap_allocate(). BSIZE stands for SIZE + 4 aligned up on 'page_size'
     70 *  boundary.
     71 *  [NOTE: If allocation were performed by _Heap_Allocate_aligned(), the
     72 *  block size BSIZE is defined differently, and previously free block will
     73 *  be split so that upper part of it will become used block (see
     74 *  'heapallocatealigned.c' for details).]
    7375 *
    7476 *            +--------------------------------+ <- begin = starting_address
Note: See TracChangeset for help on using the changeset viewer.