aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/debug
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-11-24 14:11:53 -0800
committerRobert Griesemer <gri@golang.org>2009-11-24 14:11:53 -0800
commitc6f8df0827e3d767dc9f5c7d0650252b88fe0ec5 (patch)
tree1606bb9629c695f5db0d221c7e06b54d3a3b6ce7 /src/pkg/debug
parent2cbeb1dbb18050ea33a9b8553eb7f71636afa7fd (diff)
downloadgo-c6f8df0827e3d767dc9f5c7d0650252b88fe0ec5.tar.xz
fix for broken build (built-in new was invisible due to a parameter called 'new')
R=iant https://golang.org/cl/160057
Diffstat (limited to 'src/pkg/debug')
-rw-r--r--src/pkg/debug/proc/proc_linux.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pkg/debug/proc/proc_linux.go b/src/pkg/debug/proc/proc_linux.go
index 28b85dcdff..c17e6855b8 100644
--- a/src/pkg/debug/proc/proc_linux.go
+++ b/src/pkg/debug/proc/proc_linux.go
@@ -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(newState threadState) {
+ oldState := t.state;
+ t.state = newState;
+ t.logTrace("state %v -> %v", oldState, newState);
- if !old.isRunning() && (new.isRunning() || new.isZombie()) {
+ if !oldState.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, oldState, newState);
}
}