Skip to content

Be precise about the stack budget #2820

Closed
@brson

Description

@brson

The calculations involved in deciding when the stack has run out are very, very imprecise. User code should be allowed to take up exactly the amount the task is configured for. This will involve discounting the red zone and any unused space before the red zone, and also ensuring that the final stack segment is configured such that the stack limit is set to the appropriate address to enforce the stack budget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsE-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions