]> Cypherpunks repositories - gostls13.git/commit
runtime: when using explicit argmap, also use arglen
authorKeith Randall <khr@google.com>
Mon, 12 Nov 2018 23:49:09 +0000 (15:49 -0800)
committerAndrew Bonventre <andybons@golang.org>
Mon, 26 Nov 2018 19:15:25 +0000 (19:15 +0000)
commit3e6c171e47e8c01afec79d9870625c3a9cee312c
tree9138f7834bb885f60a87806d98d550fc849ea1cd
parentc92a20818bb1b49911c2a23a0bafd5e34c4f7f7c
runtime: when using explicit argmap, also use arglen

When we set an explicit argmap, we may want only a prefix of that
argmap.  Argmap is set when the function is reflect.makeFuncStub or
reflect.methodValueCall. In this case, arglen specifies how much of
the args section is actually live. (It could be either all the args +
results, or just the args.)

Fixes #28752

Change-Id: Idf060607f15a298ac591016994e58e22f7f92d83
Reviewed-on: https://go-review.googlesource.com/c/149217
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
(cherry picked from commit 0098f8aeaceb5feec7462ae64f8ce91a473360c1)
Reviewed-on: https://go-review.googlesource.com/c/149457
src/runtime/stack.go
test/fixedbugs/issue27695c.go [new file with mode: 0644]