[RTEMS Project] #3621: Statically initialize object information structures

RTEMS trac trac at rtems.org
Fri Dec 7 13:33:35 UTC 2018


#3621: Statically initialize object information structures
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  enhancement      |      Status:  assigned
 Priority:  normal           |   Milestone:  5.1
Component:  score            |     Version:  5
 Severity:  normal           |  Resolution:
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+------------------------------

Comment (by Sebastian Huber <sebastian.huber@…>):

 In [changeset:"3899bc1a4b3294306ae2fd3f8ff0ee10365d9f4b/rtems"
 3899bc1a/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="3899bc1a4b3294306ae2fd3f8ff0ee10365d9f4b"
 score: Optimize object lookup

 Use the maximum ID for the ID to object translation.  Using the maximum
 ID gets rid of an additional load from the object information in
 _Objects_Get().  In addition, object lookups fail for every ID in case
 the object information is cleared to zero.  This makes it a bit more
 robust during system startup (see new tests in spconfig02).

 The local table no longer needs a NULL pointer entry at array index
 zero.  Adjust all the object iteration loops accordingly.

 Remove Objects_Information::minimum_id since it contains only redundant
 information.  Add _Objects_Get_minimum_id() to get the minimum ID.

 Update #3621.
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/3621#comment:6>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list