Skip to content

Why is it safe for old rust_port.cpp to store a pointer to its owning task? #2874

Closed
@bblum

Description

@bblum

rust_kernel has a facility for looking up a port by id and returning it refcounted so the port doesn't go away. But what stops the task from going away, making port->task invalid to somebody attempting to send on a channel associated with that port?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions