]> Cypherpunks repositories - gostls13.git/commit
runtime: don't write unique string to trace if it's length zero
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 19 Nov 2025 03:51:20 +0000 (03:51 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 24 Nov 2025 21:20:09 +0000 (13:20 -0800)
commit0bc192368ac603614dc3f240e751f539d91a1db2
tree9151ab8162d8dfb2f49dda957aaaeb13847fb81e
parentd4f5650cc5cdc5fa559491991208f8563bd6f3b8
runtime: don't write unique string to trace if it's length zero

While we're here, document that ID 0 is implicitly assigned to an empty
set of data for both stacks and strings.

Change-Id: Ic52ff3a1132abc5a8f6f6c4e4357e31e6e7799fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/723061
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
src/runtime/tracemap.go
src/runtime/tracestack.go
src/runtime/tracestring.go