Skip to content

no support for full stack safety provided by a guard page #10781

Closed
@thestinger

Description

@thestinger

Rust should have a way to output a call to a chkstk-like function for frames larger than the guard size. LLVM has support for chkstk so this could be leveraged on other platforms too. The Linux pthread API provides pthread_getattr_np so the available stack space can be checked.

Here's the documentation for the GCC support:

http://gcc.gnu.org/onlinedocs/gccint/Stack-Checking.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions