]> Cypherpunks repositories - gostls13.git/commit
runtime: remove dedicated scavenger thread
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 25 Aug 2014 16:59:52 +0000 (20:59 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 25 Aug 2014 16:59:52 +0000 (20:59 +0400)
commitb83d8bd0b85ff8b60a113bac841bfaf4cce52e3c
tree9f6997d8ab9547979ab262d98eee804f5a6da46f
parent4064d5e9a3dce1b88866f1364a94a02f13db6162
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
src/pkg/runtime/heapdump.c
src/pkg/runtime/malloc.h
src/pkg/runtime/mgc0.c
src/pkg/runtime/mheap.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h
src/pkg/runtime/time.go