]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify some pointer conversions
authorMatthew Dempsky <mdempsky@google.com>
Thu, 15 Aug 2019 20:09:00 +0000 (13:09 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 27 Aug 2019 19:51:43 +0000 (19:51 +0000)
commitc1df5187d007f205c31d96c8cb9c173a634a102a
tree356b5b484837592228ae595f9c7850212c16be37
parent94bf9a8d4ad479e5a9dd57b3cb8e682e841d58d4
runtime: simplify some pointer conversions

Use efaceOf to safely convert from *interface{} to *_eface, and to
make it clearer what the pointer arithmetic is computing.

Incidentally, remove a spurious unsafe.Pointer->*uint8->unsafe.Pointer
round trip conversion in newproc.

No behavior change.

Change-Id: I2ad9d791d35d8bd008ef43b03dad1589713c5fd4
Reviewed-on: https://go-review.googlesource.com/c/go/+/190457
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/proc.go