]> Cypherpunks repositories - gostls13.git/commit
runtime: move dynamic makemap checks into cmd/compile
authorMartin Möhrmann <moehrmann@google.com>
Tue, 29 Aug 2017 11:31:45 +0000 (13:31 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Wed, 30 Aug 2017 07:07:55 +0000 (07:07 +0000)
commit54125d191d967da12c5aab957bf6ffcb222df9ed
treee52915b2831255570569de0ff0327b13113df04e
parentd77d4f509c61a8e1eaadeabca86ee48710bd8030
runtime: move dynamic makemap checks into cmd/compile

Check map invariants, type size and alignments during compile time.

Keep runtime checks for reflect by adding them to reflect_makemap.

Change-Id: Ia28610626591bf7fafb7d5a1ca318da272e54879
Reviewed-on: https://go-review.googlesource.com/59914
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/reflect.go
src/runtime/hashmap.go