diff options
| author | Russ Cox <rsc@golang.org> | 2011-02-02 23:03:47 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-02-02 23:03:47 -0500 |
| commit | 1e063b32cdeaa6e07c8e720823ec5d280145cbcd (patch) | |
| tree | 68d3b99a1c1b54c1c1edf440e23904ec150c59d5 /src/pkg/runtime/slice.c | |
| parent | 6b93a92ac0ef864466254c58ffd1cbc9bc590ebc (diff) | |
| download | go-1e063b32cdeaa6e07c8e720823ec5d280145cbcd.tar.xz | |
runtime: faster allocator, garbage collector
GC is still single-threaded.
Multiple threads will happen in another CL.
Garbage collection pauses are typically
about half as long as they were before this CL.
R=brainman, iant, r
CC=golang-dev
https://golang.org/cl/3975046
Diffstat (limited to 'src/pkg/runtime/slice.c')
| -rw-r--r-- | src/pkg/runtime/slice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/slice.c b/src/pkg/runtime/slice.c index 0510754792..1fee923e43 100644 --- a/src/pkg/runtime/slice.c +++ b/src/pkg/runtime/slice.c @@ -41,7 +41,7 @@ makeslice1(SliceType *t, int32 len, int32 cap, Slice *ret) ret->cap = cap; if((t->elem->kind&KindNoPointers)) - ret->array = runtime·mallocgc(size, RefNoPointers, 1, 1); + ret->array = runtime·mallocgc(size, FlagNoPointers, 1, 1); else ret->array = runtime·mal(size); } |
