-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Closed
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
Description
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
Labels
A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows