aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/stackalloc.go
diff options
context:
space:
mode:
authorMartin Möhrmann <moehrmann@google.com>2017-08-16 23:52:16 +0200
committerMartin Möhrmann <moehrmann@google.com>2017-08-17 20:10:23 +0000
commitb6296426a065b85d4c1abbc7012dd633c33bb3c2 (patch)
tree83133ccc77260805be73d703753ca2c37bfd30d9 /src/cmd/compile/internal/ssa/stackalloc.go
parent541f8fef30adf62a2032b6e275e95507b00feb52 (diff)
downloadgo-b6296426a065b85d4c1abbc7012dd633c33bb3c2.tar.xz
runtime: avoid zeroing hmap fields in makemap twice
Stack allocated hmap structs are explicitly zeroed before being passed by pointer to makemap. Heap allocated hmap structs are created with newobject which also zeroes on allocation. Therefore, setting the hmap fields to 0 or nil is redundant since they will have been zeroed when hmap was allocated. Change-Id: I5fc55b75e9dc5ba69f5e3588d6c746f53b45ba66 Reviewed-on: https://go-review.googlesource.com/56291 Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/stackalloc.go')
0 files changed, 0 insertions, 0 deletions