]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove note about goid reuse
authorRuss Cox <rsc@golang.org>
Thu, 2 May 2024 18:27:26 +0000 (14:27 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 2 May 2024 21:10:56 +0000 (21:10 +0000)
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>

src/runtime/extern.go

index bb2f03b1cee3eaf88f8c49d77012dfbded036f2e..63950c3b5f0462b22f00d91629bf1ca1c3df81a5 100644 (file)
@@ -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.