]> Cypherpunks repositories - gostls13.git/commit
runtime: don't double-zero treap nodes
authorAustin Clements <austin@google.com>
Fri, 30 Jun 2017 16:18:27 +0000 (12:18 -0400)
committerAustin Clements <austin@google.com>
Thu, 4 Oct 2018 16:14:16 +0000 (16:14 +0000)
commit011b8eb6bb9783ec6b22697810863f30ca7bda1f
tree34467896cd06af6601523e6d7199865b43c48fb8
parent6606cd3d3bee550e0693e1bfc5678e35f1a289bf
runtime: don't double-zero treap nodes

mheap_.treapalloc.alloc() already returns a zeroed treapNode. Don't
bother re-zeroing all of the fields.

Change-Id: Iea317040fbb72dfe5ef1e2c56c287680b065f2d9
Reviewed-on: https://go-review.googlesource.com/c/139460
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/mgclarge.go