aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.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/runtime.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/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h3
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