Skip to content

runtime: chansend and chanrecv operations should not allocate #1143

@niaow

Description

@niaow

While working on #1142, I ran into the issue that channels may allocate. Since they are now becoming critical sections, this becomes more of an issue since this can cause the garbage collector to run with interrupts disabled.

We should modify the code generator to stack-allocate the channelBlockedList.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions