aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/malloc.h
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2012-05-15 19:10:16 +0400
committerDmitriy Vyukov <dvyukov@google.com>2012-05-15 19:10:16 +0400
commit01826280eb3dec5dfa06fae0474caf1ba3942ec7 (patch)
tree3911f65169c853ffed5d032a57173002e4f0fa9b /src/pkg/runtime/malloc.h
parentb554fb912ffc25f88f19bc7985c83496faa98cc8 (diff)
downloadgo-01826280eb3dec5dfa06fae0474caf1ba3942ec7.tar.xz
runtime: refactor helpgc functionality in preparation for parallel GC
Parallel GC needs to know in advance how many helper threads will be there. Hopefully it's the last patch before I can tackle parallel sweep phase. The benchmarks are unaffected. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6200064
Diffstat (limited to 'src/pkg/runtime/malloc.h')
-rw-r--r--src/pkg/runtime/malloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h
index c9ac7c00c9..bc186981cd 100644
--- a/src/pkg/runtime/malloc.h
+++ b/src/pkg/runtime/malloc.h
@@ -414,7 +414,8 @@ enum
void runtime·MProf_Malloc(void*, uintptr);
void runtime·MProf_Free(void*, uintptr);
void runtime·MProf_GC(void);
-int32 runtime·helpgc(bool*);
+int32 runtime·gcprocs(void);
+void runtime·helpgc(int32 nproc);
void runtime·gchelper(void);
bool runtime·getfinalizer(void *p, bool del, void (**fn)(void*), int32 *nret);