Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
c6f8df08
Commit
c6f8df08
authored
Nov 24, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for broken build (built-in new was invisible due to a parameter called 'new')
R=iant
https://golang.org/cl/160057
parent
2cbeb1db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/pkg/debug/proc/proc_linux.go
src/pkg/debug/proc/proc_linux.go
+6
-6
No files found.
src/pkg/debug/proc/proc_linux.go
View file @
c6f8df08
...
...
@@ -456,12 +456,12 @@ func (t *thread) wait() {
// necessary, and invokes state transition handlers.
//
// Must be called from the monitor thread.
func
(
t
*
thread
)
setState
(
new
threadState
)
{
old
:=
t
.
state
;
t
.
state
=
new
;
t
.
logTrace
(
"state %v -> %v"
,
old
,
new
);
func
(
t
*
thread
)
setState
(
new
State
threadState
)
{
old
State
:=
t
.
state
;
t
.
state
=
new
State
;
t
.
logTrace
(
"state %v -> %v"
,
old
State
,
newState
);
if
!
old
.
isRunning
()
&&
(
new
.
isRunning
()
||
new
.
isZombie
())
{
if
!
old
State
.
isRunning
()
&&
(
newState
.
isRunning
()
||
newState
.
isZombie
())
{
// Start waiting on this thread
go
t
.
wait
()
}
...
...
@@ -475,7 +475,7 @@ func (t *thread) setState(new threadState) {
t
.
proc
.
transitionHandlers
=
new
(
vector
.
Vector
);
for
_
,
h
:=
range
handlers
.
Data
()
{
h
:=
h
.
(
*
transitionHandler
);
h
.
handle
(
t
,
old
,
new
);
h
.
handle
(
t
,
old
State
,
newState
);
}
}
...
...
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