aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/slice.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-02-02 23:03:47 -0500
committerRuss Cox <rsc@golang.org>2011-02-02 23:03:47 -0500
commit1e063b32cdeaa6e07c8e720823ec5d280145cbcd (patch)
tree68d3b99a1c1b54c1c1edf440e23904ec150c59d5 /src/pkg/runtime/slice.c
parent6b93a92ac0ef864466254c58ffd1cbc9bc590ebc (diff)
downloadgo-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.c2
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);
}