Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Unified Diff: src/pkg/runtime/proc.c

Issue 127490043: code review 127490043: runtime: convert Gosched to Go (Closed)
Patch Set: diff -r e34ca40b4857b9ba020e0cacf182044599cb0a1a https://dvyukov%40google.com@code.google.com/p/go/ Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/runtime/extern.go ('k') | src/pkg/runtime/proc.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/proc.c
===================================================================
--- a/src/pkg/runtime/proc.c
+++ b/src/pkg/runtime/proc.c
@@ -1449,15 +1449,15 @@
void
runtime·gosched(void)
{
- if(g->status != Grunning)
- runtime·throw("bad g status");
- runtime·mcall(runtime·gosched0);
+ runtime·mcall(runtime·gosched_m);
}
// runtime·gosched continuation on g0.
void
-runtime·gosched0(G *gp)
+runtime·gosched_m(G *gp)
{
+ if(gp->status != Grunning)
+ runtime·throw("bad g status");
gp->status = Grunnable;
dropg();
runtime·lock(&runtime·sched.lock);
@@ -2055,12 +2055,6 @@
runtime·breakpoint();
}
-void
-runtime·Gosched(void)
-{
- runtime·gosched();
-}
-
// Implementation of runtime.GOMAXPROCS.
// delete when scheduler is even stronger
int32
« no previous file with comments | « src/pkg/runtime/extern.go ('k') | src/pkg/runtime/proc.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b