[go] Initialise (most) debug settings much earlier in startup process

1 view
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Sep 30, 2025, 2:19:31 PM (yesterday) Sep 30
to Steve Muir, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Go LUCI, Michael Knyszek, Carlos Amedee, Ian Lance Taylor, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
runtime: initialise debug settings much earlier in startup process

This is necessary specifically to set the value of `debug.decoratemappings`
sufficiently early in the startup sequence that all memory ranges allocated
can be named appropriately using the new Linux-specific naming API
introduced in #71546.

Example output (on ARM64):
https://gist.github.com/9muir/3667654b9c3f52e8be92756219371672

Fixes: #75324
Change-Id: Ic0b16233f54a45adef1660c4d0df59af2f5af86a
Auto-Submit: Michael Knyszek <mkny...@google.com>
Reviewed-by: Michael Knyszek <mkny...@google.com>
Files:
  • A src/runtime/decoratemappings_test.go
  • M src/runtime/export_test.go
  • M src/runtime/proc.go
  • M src/runtime/runtime1.go
  • M src/runtime/set_vma_name_linux.go
  • M src/runtime/set_vma_name_stub.go
Change size: M
Delta: 6 files changed, 109 insertions(+), 14 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Michael Knyszek
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: Ic0b16233f54a45adef1660c4d0df59af2f5af86a
Gerrit-Change-Number: 703476
Gerrit-PatchSet: 15
Gerrit-Owner: Steve Muir <sjm...@google.com>
Gerrit-Reviewer: Carlos Amedee <car...@golang.org>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
Gerrit-Reviewer: Steve Muir <sjm...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages