mirror of
https://github.com/golang/go.git
synced 2025-10-19 19:13:18 +00:00
runtime: fix tag pointers on aix, take 2
Previous fix in CL 667715 wasn't correct for aix. Change-Id: I44042786079463967165507b15756cf24b9a213a Reviewed-on: https://go-review.googlesource.com/c/go/+/668036 Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
ef7724c432
commit
0c15d88974
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,9 @@ func (tp taggedPointer) pointer() unsafe.Pointer {
|
|||
// val before unpacking.
|
||||
return unsafe.Pointer(uintptr(int64(tp) >> tagBits << tagAlignBits))
|
||||
}
|
||||
if GOOS == "aix" {
|
||||
return unsafe.Pointer(uintptr((tp >> tagBits << tagAlignBits) | 0xa<<56))
|
||||
}
|
||||
return unsafe.Pointer(uintptr(tp >> tagBits << tagAlignBits))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue