Changeset a062014 in rtems


Ignore:
Timestamp:
Nov 26, 2015, 1:11:19 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
8054b1c
Parents:
4a02a74
git-author:
Sebastian Huber <sebastian.huber@…> (11/26/15 13:11:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/07/15 12:10:50)
Message:

Delete _Region_Debug_Walk()

The expensive heap walks are superfluous due to the heap protection
enabled via RTEMS_DEBUG.

Update #2477.

Location:
cpukit/rtems
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/include/rtems/rtems/regionimpl.h

    r4a02a74 ra062014  
    147147extern void _Region_Process_queue(Region_Control *the_region);
    148148
    149 /**
    150  *  @brief _Region_Debug_Walk
    151  *
    152  *  This routine is invoked to verify the integrity of a heap associated
    153  *  with the_region.
    154  */
    155 #ifdef RTEMS_DEBUG
    156 
    157 #define _Region_Debug_Walk( _the_region, _source ) \
    158   do { \
    159     if ( rtems_debug_is_enabled( RTEMS_DEBUG_REGION ) ) \
    160       _Heap_Walk( &(_the_region)->Memory, _source, false ); \
    161   } while ( 0 )
    162 
    163 #else
    164 
    165 #define _Region_Debug_Walk( _the_region, _source )
    166 
    167 #endif
    168 
    169149/**@}*/
    170150
  • cpukit/rtems/src/regiondelete.c

    r4a02a74 ra062014  
    4141
    4242      case OBJECTS_LOCAL:
    43         _Region_Debug_Walk( the_region, 5 );
    4443        if ( the_region->number_of_used_blocks != 0 )
    4544          return_status = RTEMS_RESOURCE_IN_USE;
  • cpukit/rtems/src/regiongetsegment.c

    r4a02a74 ra062014  
    5858
    5959        else {
    60           _Region_Debug_Walk( the_region, 1 );
    61 
    6260          the_segment = _Region_Allocate_segment( the_region, size );
    63 
    64           _Region_Debug_Walk( the_region, 2 );
    6561
    6662          if ( the_segment ) {
  • cpukit/rtems/src/regionresizesegment.c

    r4a02a74 ra062014  
    5050
    5151      case OBJECTS_LOCAL:
    52 
    53         _Region_Debug_Walk( the_region, 7 );
    54 
    5552        status = _Heap_Resize_block(
    5653          &the_region->Memory,
     
    6158        );
    6259        *old_size = (uint32_t) osize;
    63 
    64         _Region_Debug_Walk( the_region, 8 );
    6560
    6661        if ( status == HEAP_RESIZE_SUCCESSFUL )
  • cpukit/rtems/src/regionreturnsegment.c

    r4a02a74 ra062014  
    5454
    5555      case OBJECTS_LOCAL:
    56 
    57         _Region_Debug_Walk( the_region, 3 );
    58 
    5956#ifdef RTEMS_REGION_FREE_SHRED_PATTERN
    6057        if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, &size ) )
     
    6461#endif
    6562          status = _Region_Free_segment( the_region, segment );
    66 
    67           _Region_Debug_Walk( the_region, 4 );
    6863
    6964          if ( !status )
Note: See TracChangeset for help on using the changeset viewer.