]> Cypherpunks repositories - gostls13.git/commit
runtime: use uintXX instead of *byte for si_addr on Darwin
authorAustin Clements <austin@google.com>
Thu, 26 Mar 2015 16:14:26 +0000 (12:14 -0400)
committerAustin Clements <austin@google.com>
Thu, 26 Mar 2015 16:20:32 +0000 (16:20 +0000)
commitec2c7e6659c1ab3a10dc74df2c1303b749fbc364
treec08e0b11140f2f4847d72936b52359b97fa72d6b
parent9b0ea6aa271c811abc180eb46a4d114890870ec5
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>
src/runtime/defs_darwin_386.go
src/runtime/defs_darwin_amd64.go
src/runtime/defs_darwin_arm.go
src/runtime/signal_darwin_386.go
src/runtime/signal_darwin_amd64.go
src/runtime/signal_darwin_arm.go