Changeset 94086a9 in rtems for cpukit/sapi


Ignore:
Timestamp:
04/07/14 12:41:56 (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
47445846
Parents:
fb9e98e
git-author:
Sebastian Huber <sebastian.huber@…> (04/07/14 12:41:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/07/14 12:51:31)
Message:

score: Fix POSIX threads size estimate

The POSIX threads are separate objects. Account for the object
administration overhead.

File:
1 edited

Legend:

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

    rfb9e98e r94086a9  
    20722072#endif
    20732073
     2074/**
     2075 * This macro provides a summation of the various POSIX thread requirements.
     2076 */
     2077#define CONFIGURE_POSIX_THREADS \
     2078   (CONFIGURE_MAXIMUM_POSIX_THREADS + \
     2079     CONFIGURE_MAXIMUM_ADA_TASKS + \
     2080     CONFIGURE_MAXIMUM_GOROUTINES)
     2081
    20742082/*
    20752083 *  Calculate the RAM size based on the maximum number of objects configured.
     
    22132221
    22142222/**
    2215  * This macro provides a summation of the various task and thread
    2216  * requirements.
    2217  */
    2218 #define CONFIGURE_TOTAL_TASKS_AND_THREADS \
    2219    (CONFIGURE_TASKS + \
    2220     CONFIGURE_MAXIMUM_POSIX_THREADS + CONFIGURE_MAXIMUM_ADA_TASKS + \
    2221     CONFIGURE_MAXIMUM_GOROUTINES)
    2222 
    2223 /**
    22242223 * This macro reserves the memory required by the statically configured
    22252224 * user extensions.
     
    22672266   CONFIGURE_MEMORY_FOR_SYSTEM_OVERHEAD + \
    22682267   CONFIGURE_MEMORY_FOR_TASKS( \
    2269      CONFIGURE_TOTAL_TASKS_AND_THREADS, CONFIGURE_TOTAL_TASKS_AND_THREADS) + \
     2268     CONFIGURE_TASKS, CONFIGURE_TASKS) + \
     2269   CONFIGURE_MEMORY_FOR_TASKS( \
     2270     CONFIGURE_POSIX_THREADS, CONFIGURE_POSIX_THREADS) + \
    22702271   CONFIGURE_MEMORY_FOR_CLASSIC + \
    22712272   CONFIGURE_MEMORY_FOR_POSIX_KEYS( \
     
    23942395     */
    23952396    posix_api_configuration_table Configuration_POSIX_API = {
    2396       CONFIGURE_MAXIMUM_POSIX_THREADS + CONFIGURE_MAXIMUM_ADA_TASKS +
    2397         CONFIGURE_MAXIMUM_GOROUTINES,
     2397      CONFIGURE_POSIX_THREADS,
    23982398      CONFIGURE_MAXIMUM_POSIX_MUTEXES + CONFIGURE_GNAT_MUTEXES +
    23992399        CONFIGURE_MAXIMUM_ADA_TASKS + CONFIGURE_MAXIMUM_FAKE_ADA_TASKS +
Note: See TracChangeset for help on using the changeset viewer.