Skip to content

Native tasks do not have a guard page. #11377

Closed
@alexcrichton

Description

@alexcrichton

We're about to get guard pages for green threads in #10460. We need to have guard pages for native tasks as well.

On windows, I don't believe that any extra action needs to be taken. All C code by default has stack checks, so it should all "Just Work".

On unix, it looks like we need to invoke pthread_attr_setguardsize in order to instruct the thread to be spawned with a guard page at the end.

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