| commit | bb5bb2484ff32e139320c1c2d8718903089c91d9 | [log] [tgz] |
|---|---|---|
| author | Michael Anthony Knyszek <mknyszek@google.com> | Wed Jan 08 20:20:00 2025 +0000 |
| committer | Michael Knyszek <mknyszek@google.com> | Fri Jan 10 09:17:27 2025 -0800 |
| tree | f9610cedff679efee15ce51bf6e175f51c86bfcf | |
| parent | b341049684da5bace4625c231b50de1ef2e6a453 [diff] |
gocore: skip nil largeType when discovering pointers If a core is taken while a goroutine is allocating a large object (which is more likely than smaller objects, because zeroing is delayed and takes longer than for smaller objects) gocore might observe a nil largeType in the span, which is left nil to prevent the GC from trying to scan the partially-initialized object. Fixes golang/go#71182. Change-Id: Iafa7aed29466dc8ad6eac8f10171885421e10f76 Reviewed-on: https://go-review.googlesource.com/c/debug/+/641515 Reviewed-by: Nicolas Hillegeer <aktau@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This repository holds utilities and libraries for debugging Go programs.
WARNING! Please expect breaking changes and unstable APIs. Most of them are currently are at an early, experimental stage.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/debug.
The main issue tracker for the debug repository is located at https://go.dev/issues. Prefix your issue with “x/debug:” in the subject line, so it is easy to find.