diff options
| author | Hector Chu <hectorchu@gmail.com> | 2011-08-04 00:22:39 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-08-04 00:22:39 -0400 |
| commit | 6500065543fa21a0918d78d528911012aabb1999 (patch) | |
| tree | b1fe73265c317eb3c18f11cfef2af5d4faa37bc8 /src/pkg/runtime/proc.c | |
| parent | 6fe82e6b9667ad1129043d8c9ba8a218561a4277 (diff) | |
| download | go-6500065543fa21a0918d78d528911012aabb1999.tar.xz | |
runtime: remove unnecessary locking
R=rsc, dvyukov
CC=golang-dev
https://golang.org/cl/4819051
Diffstat (limited to 'src/pkg/runtime/proc.c')
| -rw-r--r-- | src/pkg/runtime/proc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 6d8f6990b2..7a81591007 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. |
