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
72154b04
Commit
72154b04
authored
Sep 26, 2008
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go/acid/go
R=r DELTA=99 (95 added, 1 deleted, 3 changed) OCL=15983 CL=15992
parent
133c68e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
Makefile
src/runtime/Makefile
+2
-2
proc.c
src/runtime/proc.c
+3
-3
runtime.h
src/runtime/runtime.h
+0
-1
No files found.
src/runtime/Makefile
View file @
72154b04
...
...
@@ -59,5 +59,5 @@ sys_file.$O: sys_file.c sys_types.h $(OS_H)
%.$O
:
%.s
$(AS)
$<
runtime.acid
:
runtime.h
$(CC)
-a
runtime.h
>
runtime.acid
runtime.acid
:
runtime.h
proc.c
$(CC)
-a
proc.c
>
runtime.acid
src/runtime/proc.c
View file @
72154b04
...
...
@@ -297,7 +297,7 @@ static void
readylocked
(
G
*
g
)
{
M
*
m
;
if
(
g
->
m
){
// Running on another machine.
// Ready it when it stops.
...
...
@@ -346,7 +346,7 @@ nextgandunlock(void)
mput
(
m
);
if
(
sched
.
mcount
==
sched
.
mwait
)
prints
(
"warning: all goroutines are asleep - deadlock!
\n
"
);
throw
(
"all goroutines are asleep - deadlock!
"
);
m
->
nextg
=
nil
;
noteclear
(
&
m
->
havenextg
);
unlock
(
&
sched
);
...
...
@@ -377,7 +377,7 @@ scheduler(void)
// Jumped here via gosave/gogo, so didn't
// execute lock(&sched) above.
lock
(
&
sched
);
if
(
sched
.
predawn
)
throw
(
"init sleeping"
);
...
...
src/runtime/runtime.h
View file @
72154b04
...
...
@@ -186,7 +186,6 @@ struct SigTab
*/
extern
Alg
algarray
[
3
];
extern
string
emptystring
;
M
*
allm
;
G
*
allg
;
int32
goidgen
;
extern
int32
gomaxprocs
;
...
...
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