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:
Keith Randall 2025-04-25 10:09:44 -07:00
parent ef7724c432
commit 0c15d88974

View file

@ -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))
}