Skip to content

runtime: rename tracefpunwindoff GODEBUG #76209

@nsrip-dd

Description

@nsrip-dd

Go 1.21 added GODEBUG=tracefpunwindoff as a way to opt out of frame pointer unwinding when it was added for the execution tracer. Go 1.23 started using frame pointer unwinding in the block and mutex profilers, using the same GODEBUG to opt out of frame pointer unwinding. tracefpunwindoff no longer seems like an apt name since we don't just use it for the execution tracer. We may use frame pointer unwinding in other parts of the runtime in the future. We probably don't need more than one opt-out for all the different places it's used. In CL 718522, @mknyszek suggested either:

  • Introduce a more general GODEBUG that aliases tracefpunwindoff, then drop tracefpunwindoff next release, or
  • Rename it in Go 1.26 and announce it.

This issue tracks that decision. I suggest fpunwindoff for the new name.

See also #76163, which proposes a policy for removing GODEBUGs.

cc @golang/runtime

Metadata

Metadata

Assignees

No one assigned

    Labels

    LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions