]> Cypherpunks repositories - gostls13.git/commit
runtime: set MSpan.limit properly for large spans.
authorKeith Randall <khr@golang.org>
Fri, 31 May 2013 04:32:20 +0000 (21:32 -0700)
committerKeith Randall <khr@golang.org>
Fri, 31 May 2013 04:32:20 +0000 (21:32 -0700)
commitd6f89d735e66c7b955f262d38ba95f5e9a793b95
treeee6f6628592368ee82a0d464912e28d30c1e2584
parent85fc2f70acf1ad1f834e826a1bbde3e02fe2c9ee
runtime: set MSpan.limit properly for large spans.
Then use the limit to make sure MHeap_LookupMaybe & inlined
copies don't return a span if the pointer is beyond the limit.
Use this fact to optimize all call sites.

R=golang-dev, dvyukov
CC=golang-dev
https://golang.org/cl/9869045
src/pkg/runtime/malloc.goc
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c