cmd/viewcore: account for partially allocated arenas

Arenas used to be allocated completely (or at least, have a span
allocated to represent the unused space). Since 1.13.3, the latest
arena only has spans up to its highest allocation point.

Fixes viewcore for 1.13.3.

This change was CL 189957, backported to 1.13 at CL 198485.

Update golang/go#38638

Change-Id: Ia8cb14925cf6f4226a80e7ff4f011aa93e8b41d1
Reviewed-on: https://go-review.googlesource.com/c/debug/+/232158
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
3 files changed
tree: 7f80e9d5d0185ae3e2d2c163301f77456eb970d2
  1. cmd/
  2. internal/
  3. AUTHORS
  4. codereview.cfg
  5. CONTRIBUTING.md
  6. CONTRIBUTORS
  7. go.mod
  8. go.sum
  9. LICENSE
  10. README.md
README.md

Go Debug

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.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the debug repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/debug:” in the subject line, so it is easy to find.