From 6500065543fa21a0918d78d528911012aabb1999 Mon Sep 17 00:00:00 2001 From: Hector Chu Date: Thu, 4 Aug 2011 00:22:39 -0400 Subject: [PATCH] runtime: remove unnecessary locking R=rsc, dvyukov CC=golang-dev https://golang.org/cl/4819051 --- src/pkg/runtime/proc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 6d8f6990b2e..7a81591007f 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -855,14 +855,11 @@ runtime·exitsyscall(void) return; } - schedlock(); - // Tell scheduler to put g back on the run queue: // mostly equivalent to g->status = Grunning, // but keeps the garbage collector from thinking // that g is running right now, which it's not. g->readyonstop = 1; - schedunlock(); // All the cpus are taken. // The scheduler will ready g and put this m to sleep.