From b83d8bd0b85ff8b60a113bac841bfaf4cce52e3c Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Mon, 25 Aug 2014 20:59:52 +0400 Subject: 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/runtime.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pkg/runtime/runtime.h') 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 -- cgit v1.3-5-g9baa