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
214a55b0
Commit
214a55b0
authored
Apr 21, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: switch state back to Grunning after recovery
Fixes #733. R=r CC=golang-dev
https://golang.org/cl/958041
parent
e7b6fe39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
mgc0.c
src/pkg/runtime/mgc0.c
+1
-1
proc.c
src/pkg/runtime/proc.c
+2
-1
No files found.
src/pkg/runtime/mgc0.c
View file @
214a55b0
...
...
@@ -128,6 +128,7 @@ mark(void)
case
Gdead
:
break
;
case
Grunning
:
case
Grecovery
:
if
(
gp
!=
g
)
throw
(
"mark - world not stopped"
);
scanstack
(
gp
);
...
...
@@ -135,7 +136,6 @@ mark(void)
case
Grunnable
:
case
Gsyscall
:
case
Gwaiting
:
case
Grecovery
:
scanstack
(
gp
);
break
;
}
...
...
src/pkg/runtime/proc.c
View file @
214a55b0
...
...
@@ -248,7 +248,7 @@ readylocked(G *g)
}
// Mark runnable.
if
(
g
->
status
==
Grunnable
||
g
->
status
==
Grunning
)
if
(
g
->
status
==
Grunnable
||
g
->
status
==
Grunning
||
g
->
status
==
Grecovery
)
throw
(
"bad g->status in ready"
);
g
->
status
=
Grunnable
;
...
...
@@ -472,6 +472,7 @@ scheduler(void)
// before it tests the return value.)
gp
->
sched
.
sp
=
getcallersp
(
d
->
sp
-
2
*
sizeof
(
uintptr
));
gp
->
sched
.
pc
=
d
->
pc
;
gp
->
status
=
Grunning
;
free
(
d
);
gogo
(
&
gp
->
sched
,
1
);
}
...
...
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