Skip to content

<Future as std::..::Future>::poll() always allocates, growing until we're woken #2874

Closed
@TheBlueMatt

Description

@TheBlueMatt

<Future as std::..::Future>::poll(), if state.complete is not set, always pushes the provided waker onto the callbacks vec. This means if we get poll'd regularly our memory will grow and grow until we get woken, which may be quite a while. Thus, this may end up using a very nontrivial amount of memory, at least on busy nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions