mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: initialize scavengeIndex fields properly
Currently these fields are uninitialized causing failures on aix-ppc64, which has a slightly oddly-defined address space compared to the rest. Change-Id: I2aa46731174154dce86c2074bd0b00eef955d86d Reviewed-on: https://go-review.googlesource.com/c/go/+/486655 Auto-Submit: Michael Knyszek <mknyszek@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> Run-TryBot: Michael Knyszek <mknyszek@google.com> TryBot-Bypass: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
4f9a966926
commit
8588a3fa08
2 changed files with 10 additions and 0 deletions
|
|
@ -321,6 +321,9 @@ func (p *pageAlloc) init(mheapLock *mutex, sysStat *sysMemStat, test bool) {
|
|||
// Set the mheapLock.
|
||||
p.mheapLock = mheapLock
|
||||
|
||||
// Initialize the scavenge index.
|
||||
p.scav.index.init()
|
||||
|
||||
// Set if we're in a test.
|
||||
p.test = test
|
||||
p.scav.index.test = test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue