-
Notifications
You must be signed in to change notification settings - Fork 2.1k
core: More THREAD_STACKSIZE_* options #1976
Copy link
Copy link
Closed
Labels
Area: coreArea: RIOT kernel. Handle PRs marked with this with care!Area: RIOT kernel. Handle PRs marked with this with care!Discussion: RFCThe issue/PR is used as a discussion starting point about the item of the issue/PRThe issue/PR is used as a discussion starting point about the item of the issue/PRType: enhancementThe issue suggests enhanceable parts / The PR enhances parts of the codebase / documentationThe issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Milestone
Description
Currently there is only THREAD_STACKSIZE_DEFAULT (or THREAD_STACKSIZE_PRINTF) as a real option to set up your stacksize for threads. Some more options would be nice. I analyzed some stack usage and some stacks are only using half, or sometimes even only a quarter of the allocated stack size on most boards I looked at.
Suggestions for these macros:
THREAD_STACKSIZE_TINY: an eighth ofTHREAD_STACKSIZE_DEFAULTTHREAD_STACKSIZE_SMALL: a quarter ofTHREAD_STACKSIZE_DEFAULTTHREAD_STACKSIZE_MEDIUM: half ofTHREAD_STACKSIZE_DEFAULTTHREAD_STACKSIZE_LARGE: alias forTHREAD_STACKSIZE_DEFAULTTHREAD_STACKSIZE_HUGE: double ofTHREAD_STACKSIZE_DEFAULT
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: coreArea: RIOT kernel. Handle PRs marked with this with care!Area: RIOT kernel. Handle PRs marked with this with care!Discussion: RFCThe issue/PR is used as a discussion starting point about the item of the issue/PRThe issue/PR is used as a discussion starting point about the item of the issue/PRType: enhancementThe issue suggests enhanceable parts / The PR enhances parts of the codebase / documentationThe issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation