Skip to content

What happens when the runtime runs out of task ids? #1767

@brson

Description

@brson

Currently the runtime assigns task id's (intptr_t) to each task, starting at 0. When the current task id hits INTPTR_MAX the runtime theoretically fails an assert and crashes. Would be sweet if the runtime didn't crash in this situation. Ports within a single task also have a similar problem, and soon schedulers will as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions