]> Cypherpunks repositories - gostls13.git/commit
runtime: clean up and improve reflect.methodValue comments
authorAustin Clements <austin@google.com>
Fri, 16 Dec 2016 16:57:25 +0000 (11:57 -0500)
committerAustin Clements <austin@google.com>
Mon, 19 Dec 2016 21:02:53 +0000 (21:02 +0000)
commitddd558e7e407b9fb0ba27f5a80fdc8b17a8e466f
tree69beb32d5c3193fc361fe919444aec688c6d8207
parent8d2169104467a14dea5705beb8ea351c68c5595d
runtime: clean up and improve reflect.methodValue comments

The runtime no longer hard-codes the offset of
reflect.methodValue.stack, so remove these obsolete comments. Also,
reflect.methodValue and runtime.reflectMethodValue must also agree
with reflect.makeFuncImpl, so update the comments on all three to
mention this.

This was pointed out by Minux on CL 31138.

Change-Id: Ic5ed1beffb65db76aca2977958da35de902e8e58
Reviewed-on: https://go-review.googlesource.com/34590
Reviewed-by: Keith Randall <khr@golang.org>
src/reflect/makefunc.go
src/runtime/traceback.go