From 5328df6534b9fa2ca83cbbac013ef1e094e11907 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 9 Jan 2010 09:47:45 -0800 Subject: runtime: check for preemption due to garbage collection in various already expensive routines. helps keep cpu utilization up when GOMAXPROCS > 1, but not a full solution. http://groups.google.com/group/golang-nuts/t/7a9535c4136d3e2 R=r CC=golang-dev https://golang.org/cl/184043 --- src/pkg/runtime/runtime.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pkg/runtime/runtime.h') diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 2d956ea980..ff0eab6b76 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -316,6 +316,7 @@ extern int32 gomaxprocs; extern int32 panicking; extern int32 maxround; extern int32 fd; // usually 1; set to 2 when panicking +extern int32 gcwaiting; // gc is waiting to run int8* goos; /* -- cgit v1.3