Skip to content

core: More THREAD_STACKSIZE_* options #1976

@miri64

Description

@miri64

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 of THREAD_STACKSIZE_DEFAULT
  • THREAD_STACKSIZE_SMALL: a quarter of THREAD_STACKSIZE_DEFAULT
  • THREAD_STACKSIZE_MEDIUM: half of THREAD_STACKSIZE_DEFAULT
  • THREAD_STACKSIZE_LARGE: alias for THREAD_STACKSIZE_DEFAULT
  • THREAD_STACKSIZE_HUGE: double of THREAD_STACKSIZE_DEFAULT

Metadata

Metadata

Assignees

Labels

Area: coreArea: 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/PRType: enhancementThe issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions