aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/malloc.h
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2014-08-25 20:59:52 +0400
committerDmitriy Vyukov <dvyukov@google.com>2014-08-25 20:59:52 +0400
commitb83d8bd0b85ff8b60a113bac841bfaf4cce52e3c (patch)
tree9f6997d8ab9547979ab262d98eee804f5a6da46f /src/pkg/runtime/malloc.h
parent4064d5e9a3dce1b88866f1364a94a02f13db6162 (diff)
downloadgo-b83d8bd0b85ff8b60a113bac841bfaf4cce52e3c.tar.xz
runtime: remove dedicated scavenger thread
A whole thread is too much for background scavenger that sleeps all the time anyway. We already have sysmon thread that can do this work. Also remove g->isbackground and simplify enter/exitsyscall. LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews, khr, rlh https://golang.org/cl/108640043
Diffstat (limited to 'src/pkg/runtime/malloc.h')
-rw-r--r--src/pkg/runtime/malloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h
index fb51a9e5dd..f5a2b2a42d 100644
--- a/src/pkg/runtime/malloc.h
+++ b/src/pkg/runtime/malloc.h
@@ -516,7 +516,7 @@ MSpan* runtime·MHeap_LookupMaybe(MHeap *h, void *v);
void* runtime·MHeap_SysAlloc(MHeap *h, uintptr n);
void runtime·MHeap_MapBits(MHeap *h);
void runtime·MHeap_MapSpans(MHeap *h);
-void runtime·MHeap_Scavenger(void);
+void runtime·MHeap_Scavenge(int32 k, uint64 now, uint64 limit);
void* runtime·persistentalloc(uintptr size, uintptr align, uint64 *stat);
int32 runtime·mlookup(void *v, byte **base, uintptr *size, MSpan **s);