]> Cypherpunks repositories - gostls13.git/commit
runtime: don't scan go'd function args past length of ptr bitmap
authorKeith Randall <keithr@alum.mit.edu>
Thu, 3 Jan 2019 20:13:53 +0000 (12:13 -0800)
committerKeith Randall <khr@golang.org>
Thu, 3 Jan 2019 23:37:42 +0000 (23:37 +0000)
commit688667716ede8b133d361db0a1d47eab24ced7f7
treec4abaf48b807239f680885689860f1a07ea30927
parent5073bf388694fd85d4419923c536af481df4e33b
runtime: don't scan go'd function args past length of ptr bitmap

Use the length of the bitmap to decide how much to pass to the
write barrier, not the total length of the arguments.

The test needs enough arguments so that two distinct bitmaps
get interpreted as a single longer bitmap.

Update #29362

Change-Id: I78f3f7f9ec89c2ad4678f0c52d3d3def9cac8e72
Reviewed-on: https://go-review.googlesource.com/c/156123
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/proc.go
test/fixedbugs/issue29362b.go [new file with mode: 0644]