diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-08-25 20:59:52 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-08-25 20:59:52 +0400 |
| commit | b83d8bd0b85ff8b60a113bac841bfaf4cce52e3c (patch) | |
| tree | 9f6997d8ab9547979ab262d98eee804f5a6da46f /src/pkg/runtime/runtime.h | |
| parent | 4064d5e9a3dce1b88866f1364a94a02f13db6162 (diff) | |
| download | go-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/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index beafc76637..df2999bbd9 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -282,8 +282,7 @@ struct G String waitreason; // if status==Gwaiting G* schedlink; bool ispanic; - bool issystem; // do not output in stack dump - bool isbackground; // ignore in deadlock detector + bool issystem; // do not output in stack dump, ignore in deadlock detector bool preempt; // preemption signal, duplicates stackguard0 = StackPreempt bool paniconfault; // panic (instead of crash) on unexpected fault address int8 raceignore; // ignore race detection events |
