From 8f71c7633fd70fffc5fa65e7865e763238fa6f46 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 2 May 2024 14:27:26 -0400 Subject: runtime: remove note about goid reuse Goids are designed to be big enough that they will never be reused: a uint64 is enough to generate a new goroutine every nanosecond for 500+ years before wrapping around, and after 500 years you should probably stop and pick up some security updates. This note was added in CL 70993 and appears to have just been a misunderstanding by the CL author. Change-Id: Ida7099b5191a4e5dbb1e3e9e44b4b86d7779fd6d Reviewed-on: https://go-review.googlesource.com/c/go/+/582895 LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Pratt Auto-Submit: Russ Cox --- src/runtime/extern.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/runtime/extern.go b/src/runtime/extern.go index bb2f03b1ce..63950c3b5f 100644 --- a/src/runtime/extern.go +++ b/src/runtime/extern.go @@ -198,9 +198,8 @@ It is a comma-separated list of name=val pairs setting these named variables: tracebackancestors: setting tracebackancestors=N extends tracebacks with the stacks at which goroutines were created, where N limits the number of ancestor goroutines to - report. This also extends the information returned by runtime.Stack. Ancestor's goroutine - IDs will refer to the ID of the goroutine at the time of creation; it's possible for this - ID to be reused for another goroutine. Setting N to 0 will report no ancestry information. + report. This also extends the information returned by runtime.Stack. + Setting N to 0 will report no ancestry information. tracefpunwindoff: setting tracefpunwindoff=1 forces the execution tracer to use the runtime's default stack unwinder instead of frame pointer unwinding. -- cgit v1.2.3-54-g00ecf