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
fe8ff955
Commit
fe8ff955
authored
Sep 01, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add newprocreadylocked for debugger
R=austin DELTA=10 (9 added, 0 deleted, 1 changed) OCL=34163 CL=34166
parent
40bcbb30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
proc.c
src/pkg/runtime/proc.c
+10
-1
No files found.
src/pkg/runtime/proc.c
View file @
fe8ff955
...
@@ -265,6 +265,15 @@ readylocked(G *g)
...
@@ -265,6 +265,15 @@ readylocked(G *g)
matchmg
();
matchmg
();
}
}
// Same as readylocked but a different symbol so that
// debuggers can set a breakpoint here and catch all
// new goroutines.
static
void
newprocreadylocked
(
G
*
g
)
{
readylocked
(
g
);
}
// Pass g to m for running.
// Pass g to m for running.
static
void
static
void
mnextg
(
M
*
m
,
G
*
g
)
mnextg
(
M
*
m
,
G
*
g
)
...
@@ -739,7 +748,7 @@ sys·newproc(int32 siz, byte* fn, byte* arg0)
...
@@ -739,7 +748,7 @@ sys·newproc(int32 siz, byte* fn, byte* arg0)
goidgen
++
;
goidgen
++
;
newg
->
goid
=
goidgen
;
newg
->
goid
=
goidgen
;
readylocked
(
newg
);
newproc
readylocked
(
newg
);
unlock
(
&
sched
);
unlock
(
&
sched
);
//printf(" goid=%d\n", newg->goid);
//printf(" goid=%d\n", newg->goid);
...
...
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