Changeset 0da9d80 in rtems


Ignore:
Timestamp:
Nov 22, 2018, 5:16:52 AM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
359a3a3
Parents:
9c9c6a9
git-author:
Sebastian Huber <sebastian.huber@…> (11/22/18 05:16:52)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/07/18 13:22:01)
Message:

score: Rename Objects_Information::size

Rename Objects_Information::size to Objects_Information::object_size.
Change its type from size_t to uint16_t and move it to reduce the size
of Objects_Information.

Update #3621.

Location:
cpukit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/objectimpl.h

    r9c9c6a9 r0da9d80  
    133133  /** This is the number of objects in a block. */
    134134  Objects_Maximum   allocation_size;
     135  /** This is the size in bytes of each object instance. */
     136  uint16_t          object_size;
    135137  /**
    136138   * @brief This is the maximum length of names.
     
    146148  /** This is the true if unlimited objects in this class. */
    147149  bool              auto_extend;
    148   /** This is the size in bytes of each object instance. */
    149   size_t            size;
    150150  /** This is the chain of inactive control blocks. */
    151151  Chain_Control     Inactive;
     
    228228  uint16_t             the_class,
    229229  uint32_t             maximum,
    230   uint16_t             size,
     230  uint16_t             object_size,
    231231  uint16_t             maximum_name_length
    232232#if defined(RTEMS_MULTIPROCESSING)
     
    259259 *  @param[in] maximum is the maximum number of instances of this object
    260260 *             class which may be concurrently active.
    261  *  @param[in] size is the size of the data structure for this class.
     261 *  @param[in] object_size is the size of the data structure for this class.
    262262 *  @param[in] is_string is true if this object uses string style names.
    263263 *  @param[in] maximum_name_length is the maximum length of object names.
     
    269269    the_class, \
    270270    maximum, \
    271     size, \
     271    object_size, \
    272272    maximum_name_length, \
    273273    extract \
     
    278278      the_class, \
    279279      maximum, \
    280       size, \
     280      object_size, \
    281281      maximum_name_length, \
    282282      extract \
     
    288288    the_class, \
    289289    maximum, \
    290     size, \
     290    object_size, \
    291291    maximum_name_length, \
    292292    extract \
     
    297297      the_class, \
    298298      maximum, \
    299       size, \
     299      object_size, \
    300300      maximum_name_length \
    301301    )
  • cpukit/score/src/objectallocate.c

    r9c9c6a9 r0da9d80  
    4848   *  check that code for this manager is even present.
    4949   */
    50   if ( information->size == 0 )
     50  if ( information->object_size == 0 )
    5151    return NULL;
    5252
  • cpukit/score/src/objectextendinformation.c

    r9c9c6a9 r0da9d80  
    101101   * generate a fatal error depending on auto-extending being active.
    102102   */
    103   object_block_size = information->allocation_size * information->size;
     103  object_block_size = information->allocation_size * information->object_size;
    104104  if ( information->auto_extend ) {
    105105    new_object_block = _Workspace_Allocate( object_block_size );
     
    262262    _Chain_Append_unprotected( &information->Inactive, &the_object->Node );
    263263
    264     the_object = _Addresses_Add_offset( the_object, information->size );
     264    the_object = _Addresses_Add_offset( the_object, information->object_size );
    265265  }
    266266}
  • cpukit/score/src/objectinitializeinformation.c

    r9c9c6a9 r0da9d80  
    3030  uint16_t             the_class,
    3131  uint32_t             maximum,
    32   uint16_t             size,
     32  uint16_t             object_size,
    3333  uint16_t             maximum_name_length
    3434#if defined(RTEMS_MULTIPROCESSING)
     
    4444  information->the_api            = the_api;
    4545  information->the_class          = the_class;
    46   information->size               = size;
     46  information->object_size        = object_size;
    4747  information->local_table        = 0;
    4848  information->inactive_per_block = 0;
  • cpukit/score/src/threadinitialize.c

    r9c9c6a9 r0da9d80  
    7474    &the_thread->Join_queue,
    7575    0,
    76     information->Objects.size - offsetof( Thread_Control, Join_queue )
     76    information->Objects.object_size - offsetof( Thread_Control, Join_queue )
    7777  );
    7878
Note: See TracChangeset for help on using the changeset viewer.