Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
65000655
Commit
65000655
authored
Aug 04, 2011
by
Hector Chu
Committed by
Russ Cox
Aug 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: remove unnecessary locking
R=rsc, dvyukov CC=golang-dev
https://golang.org/cl/4819051
parent
6fe82e6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
proc.c
src/pkg/runtime/proc.c
+0
-3
No files found.
src/pkg/runtime/proc.c
View file @
65000655
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment