]> Cypherpunks repositories - gostls13.git/commit
runtime: don't clear pointer-free memory when growing maps
authorJosh Bleecher Snyder <josharian@gmail.com>
Sat, 19 Aug 2017 17:45:38 +0000 (10:45 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Sun, 20 Aug 2017 15:46:43 +0000 (15:46 +0000)
commit3f972df4a7f4be5db219ebd22625594711b68255
treebe9ac71ce90b675c4237d7324a18fdda9d677a9b
parentff90f4af66c30a819532fda8754bf29e8ae6140e
runtime: don't clear pointer-free memory when growing maps

If there are no pointers, then clearing memory doesn't help GC,
and the memory is otherwise dead, so don't bother clearing it.

Change-Id: I953f4a3264939f2825e82292030eda2e835cbb97
Reviewed-on: https://go-review.googlesource.com/57350
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
src/runtime/hashmap.go