]> Cypherpunks repositories - gostls13.git/commit
runtime: zero 2-word memory blocks in-place
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 21 Jan 2014 06:53:51 +0000 (10:53 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 21 Jan 2014 06:53:51 +0000 (10:53 +0400)
commitd5a36cd6bb14a3bf00c58779848beeaeb87ade7d
treea89de67c351b5168e5708b3e823d3286d97444ce
parentb039abfc3ec93debe732bb4824bebd098ab7a62a
runtime: zero 2-word memory blocks in-place
Currently for 2-word blocks we set the flag to clear the flag. Makes no sense.
In particular on 32-bits we call memclr always.

R=golang-codereviews, dave, iant
CC=golang-codereviews, khr, rsc
https://golang.org/cl/41170044
src/pkg/runtime/malloc.goc
src/pkg/runtime/mgc0.c