Skip to content

getcontext() should not be exposed from std.os.linux #23494

Closed

Description

@alexrp

The standard library only needs this function for stack unwinding purposes when not linking libc. Currently it's only implemented for x86 and x86_64. It should be moved to std.debug.

We shouldn't be in the business of exposing this function because std.os.linux is not a libc emulation layer, and implementing getcontext() according to libc semantics is more expensive than necessary for the standard library's needs (e.g. due to signal mask).

Activity

  1. added
    standard library
    on Apr 7, 2025
  2. added this to the 0.15.0 milestone on Apr 7, 2025
  3. self-assigned this
    on Apr 7, 2025
  4. removed their assignment
    on May 6, 2025
  5. modified the milestones: urgent, upcoming on Jun 26, 2025
  6. mlugg commented on Oct 1, 2025

    @mlugg
    Member

    Resolved by b64535e

  7. modified the milestones: upcoming, 0.16.0 on Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    os-linuxstandard library

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions