]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix noscan maps
authorDmitry Vyukov <dvyukov@google.com>
Sat, 14 Feb 2015 13:10:06 +0000 (16:10 +0300)
committerDmitry Vyukov <dvyukov@google.com>
Sun, 15 Feb 2015 08:52:14 +0000 (08:52 +0000)
commit52dadc1f31f8e509ad22902a41f0fe40b3b0a365
tree5c416510e54cc0e4b2847433f00c35e382ed3c9b
parent2dd7a6d41f2d28d7eb2209e8887ca80c461b52cb
cmd/gc: fix noscan maps

Change 85e7bee introduced a bug:
it marks map buckets as noscan when key and val do not contain pointers.
However, buckets with large/outline key or val do contain pointers.

This change takes key/val size into consideration when
marking buckets as noscan.

Change-Id: I7172a0df482657be39faa59e2579dd9f209cb54d
Reviewed-on: https://go-review.googlesource.com/4901
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/gc/reflect.c
src/reflect/type.go
src/runtime/hashmap.go
src/runtime/map_test.go