]> 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)
committerKeith Randall <khr@golang.org>
Tue, 13 Nov 2018 22:52:09 +0000 (22:52 +0000)
commit0098f8aeaceb5feec7462ae64f8ce91a473360c1
tree3727380bc1f037536a6cc9933e2a0b3bd183cab3
parentdf2bb9817b2184256886d9d9458753b2273c202d
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 #28750

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>
src/runtime/stack.go
test/fixedbugs/issue27695c.go [new file with mode: 0644]