]> Cypherpunks repositories - gostls13.git/commit
runtime: ensure arenaBaseOffset makes it into DWARF (for viewcore)
authorKeith Randall <khr@golang.org>
Fri, 26 Jun 2020 23:38:40 +0000 (16:38 -0700)
committerKeith Randall <khr@golang.org>
Sat, 27 Jun 2020 02:49:01 +0000 (02:49 +0000)
commit12c01f7698cd257b7d2e4795b0f8a971ec8533b6
treeab16d23df6b7336cab3cff45435c80cd9f1fba80
parenta295d59d10d87ea882ddc8db6919a278b3a67d01
runtime: ensure arenaBaseOffset makes it into DWARF (for viewcore)

This constant does not make it into DWARF because it is an ideal
constant larger than maxint (1<<63-1). DWARF has no way to represent
signed values that large. Define a different typed constant that
is unsigned and so can represent this constant properly.

Viewcore needs this constant to interrogate the heap data structures.
In addition, the sign of arenaBaseOffset changed in 1.15, and providing
a new name lets viewcore detect the sign change easily.

Change-Id: I4274a2f6e79ebbf1411e85d64758fac1672fb96b
Reviewed-on: https://go-review.googlesource.com/c/go/+/240198
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/malloc.go