[PATCH v2 00/10] Rework work area initialization

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Feb 3 05:27:10 UTC 2020


----- Am 3. Feb 2020 um 0:01 schrieb Chris Johns chrisj at rtems.org:

> On 3/2/20 12:28 am, Sebastian Huber wrote:
>> This change set reworks the work area initialization carried out by the BSPs to
>> initialize the workspace and C program heap only on demand, e.g. in case these
>> components are used by the application.
>> 
>> Currently, the workspace is always used, however, this may change in a follow up
>> change set.
> 
> Is the purpose of change to have a more efficient use of the workspace because a
> defined area is reserved and allocated when the manager is initialised?

No, this patch set changes the way how BSPs provide the memory area used for the workspace and the C program heap. It doesn't change how the workspace itself is used.

> 
> I am not sure what the "demand" is and where it is coming from.

Currently, the workspace and C program heap area always initialized.  With this patch, they are only initialized if they are used. So, a future application which only uses statically allocated resources, will not have the heap handler in its executable.

> 
> How are allocation errors handled? Traditionally this has been at compile time
> but I am not sure if this is still valid.

Workspace allocation errors were never handled at compile time, they result in fatal run time errors or failed directives. This patch set changes nothing in this respect.


More information about the devel mailing list