Skip to content

native::start does not know the stack boundary #11131

Closed
@alexcrichton

Description

@alexcrichton

Once libnative lands, the start function will have no knowledge of the stack boundaries on the main thread. This is far less than ideal because the main thread is no longer protected from stack overflow.

Crates which link to libnative and don't override #[start] will have their main function executed in a separate thread to get around this, but crates using libnative should at least be made aware of this (or we should figure out the current thread's stack size).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions