Changeset d7665823 in rtems for cpukit/sapi


Ignore:
Timestamp:
Jun 24, 2015, 1:43:19 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e709aa85
Parents:
e2735012
git-author:
Sebastian Huber <sebastian.huber@…> (06/24/15 13:43:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/23/15 06:01:13)
Message:

score: Introduce Thread_queue_Heads

Move the storage for the thread queue heads to the threads. Each thread
provides a set of thread queue heads allocated from a dedicated memory
pool. In case a thread blocks on a queue, then it lends its heads to
the queue. In case the thread unblocks, then it takes a free set of
threads from the queue. Since a thread can block on at most one queue
this works. This mechanism is used in FreeBSD. The motivation for this
change is to reduce the memory demands of the synchronization objects.
On a 32-bit uni-processor configuration the Thread_queue_Control size is
now 8 bytes, compared to 64 bytes in RTEMS 4.10 (other changes reduced
the size as well).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    re2735012 rd7665823  
    29702970  ( \
    29712971    _Configure_Object_RAM(_tasks, sizeof(Configuration_Thread_control)) \
     2972      + _Configure_From_workspace(_Configure_Max_Objects(_tasks) \
     2973        * sizeof(Thread_queue_Heads)) \
    29722974      + _Configure_Max_Objects(_number_FP_tasks) \
    29732975        * _Configure_From_workspace(CONTEXT_FP_SIZE) \
Note: See TracChangeset for help on using the changeset viewer.