Skip to content
Snippets Groups Projects
Commit 0c15d889 authored by Keith Randall's avatar Keith Randall
Browse files

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: default avatarKeith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: default avatarMichael Knyszek <mknyszek@google.com>
parent ef7724c4
Branches
No related tags found
No related merge requests found
......@@ -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))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment