mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
a295d59d10
commit
12c01f7698
1 changed files with 2 additions and 0 deletions
|
|
@ -303,6 +303,8 @@ const (
|
|||
// On other platforms, the user address space is contiguous
|
||||
// and starts at 0, so no offset is necessary.
|
||||
arenaBaseOffset = 0xffff800000000000*sys.GoarchAmd64 + 0x0a00000000000000*sys.GoosAix
|
||||
// A typed version of this constant that will make it into DWARF (for viewcore).
|
||||
arenaBaseOffsetUintptr = uintptr(arenaBaseOffset)
|
||||
|
||||
// Max number of threads to run garbage collection.
|
||||
// 2, 3, and 4 are all plausible maximums depending
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue