aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/defs_darwin_amd64.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2015-03-26 12:14:26 -0400
committerAustin Clements <austin@google.com>2015-03-26 16:20:32 +0000
commitec2c7e6659c1ab3a10dc74df2c1303b749fbc364 (patch)
treec08e0b11140f2f4847d72936b52359b97fa72d6b /src/runtime/defs_darwin_amd64.go
parent9b0ea6aa271c811abc180eb46a4d114890870ec5 (diff)
downloadgo-ec2c7e6659c1ab3a10dc74df2c1303b749fbc364.tar.gz
go-ec2c7e6659c1ab3a10dc74df2c1303b749fbc364.zip
runtime: use uintXX instead of *byte for si_addr on Darwin
Currently, Darwin's siginfo type uses *byte for the si_addr field. This results in unwanted write barriers in set_sigaddr. It's also pointless since it never points to anything real and the get/set methods return/take uintXX and cast it from/to the pointer. All other arches use a uint type for this field. Change Darwin to match. This simplifies the get/set methods and eliminates the unwanted write barriers. Change-Id: Ifdb5646d35e1f2f6808b87a3d59745ec9718add1 Reviewed-on: https://go-review.googlesource.com/8086 Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/defs_darwin_amd64.go')
-rw-r--r--src/runtime/defs_darwin_amd64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/defs_darwin_amd64.go b/src/runtime/defs_darwin_amd64.go
index 2cd4c0cd05..d9d9fc5516 100644
--- a/src/runtime/defs_darwin_amd64.go
+++ b/src/runtime/defs_darwin_amd64.go
@@ -175,7 +175,7 @@ type siginfo struct {
si_pid int32
si_uid uint32
si_status int32
- si_addr *byte
+ si_addr uint64
si_value [8]byte
si_band int64
__pad [7]uint64