Changeset f2e4e67 in rtems


Ignore:
Timestamp:
Nov 7, 2007, 11:26:44 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
42bb3a02
Parents:
edf4ee47
Message:

2007-11-07 Joel Sherrill <joel.sherrill@…>

  • score/inline/rtems/score/object.inl: During test coverage analysis, we identified this sanity check which should have been conditional on RTEMS_DEBUG since it can NOT be tripped during normal RTEMS operations. With all APIs enabled, this saved 352 bytes from the minimum executable on the SPARC/ERC32.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    redf4ee47 rf2e4e67  
     12007-11-07      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * score/inline/rtems/score/object.inl: During test coverage analysis,
     4        we identified this sanity check which should have been conditional on
     5        RTEMS_DEBUG since it can NOT be tripped during normal RTEMS
     6        operations. With all APIs enabled, this saved 352 bytes from the
     7        minimum executable on the SPARC/ERC32.
     8
    192007-11-07      Joel Sherrill <joel.sherrill@OARcorp.com>
    210
  • cpukit/score/inline/rtems/score/object.inl

    redf4ee47 rf2e4e67  
    88 *  of the inlined routines in the Object Handler.
    99 *
    10  *  COPYRIGHT (c) 1989-2006.
     10 *  COPYRIGHT (c) 1989-2007.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    201201 *  @param[in] index is the index of the object the caller wants to access
    202202 *  @param[in] the_object is the local object pointer
     203 *
     204 *  @note This routine is ONLY to be called in places where the
     205 *        index portion of the Id is known to be good.  This is
     206 *        OK since it is normally called from object create/init
     207 *        or delete/destroy operations.
    203208 */
    204209
     
    209214)
    210215{
    211   if ( index <= information->maximum )
    212     information->local_table[ index ] = the_object;
     216  /*
     217   *  This routine is ONLY to be called from places in the code
     218   *  where the Id is known to be good.  Therefore, this should NOT
     219   *  occur in normal situations.
     220   */
     221  #if defined(RTEMS_DEBUG)
     222    if ( index > information->maximum )
     223      return;
     224  #endif
     225
     226  information->local_table[ index ] = the_object;
    213227}
    214228
Note: See TracChangeset for help on using the changeset viewer.