]> Cypherpunks repositories - gostls13.git/commit
runtime: replace some uses of newarray with newobject for maps
authorMartin Möhrmann <moehrmann@google.com>
Thu, 10 Aug 2017 19:24:51 +0000 (21:24 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Mon, 14 Aug 2017 21:25:02 +0000 (21:25 +0000)
commit248a7c7c42eaf58d0c82b704205c7eac5b14a42a
tree24935876f7e0c504edb79b4ba496f2ded38036c0
parent7df29b50b2d7fd9abcd2a070df407db57f3f79a6
runtime: replace some uses of newarray with newobject for maps

This avoids the never triggered capacity checks in newarray.

Change-Id: Ib72b204adcb9e3fd3ab963defe0cd40e22d5d492
Reviewed-on: https://go-review.googlesource.com/54731
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/hashmap.go
src/runtime/hashmap_fast.go