mirror of
https://github.com/golang/go
synced 2024-11-12 10:00:25 -07:00
all: fix typos
Change-Id: Icded6c786b7b185d5aff055f34e0cfe9e521826a Reviewed-on: https://go-review.googlesource.com/132176 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
dd9e81f678
commit
31389254de
@ -1045,7 +1045,7 @@ func needRaceCleanup(sym interface{}, v *Value) bool {
|
|||||||
// Check for racefuncenter will encounter racefuncexit and vice versa.
|
// Check for racefuncenter will encounter racefuncexit and vice versa.
|
||||||
// Allow calls to panic*
|
// Allow calls to panic*
|
||||||
default:
|
default:
|
||||||
// If we encounterd any call, we need to keep racefunc*,
|
// If we encountered any call, we need to keep racefunc*,
|
||||||
// for accurate stacktraces.
|
// for accurate stacktraces.
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -438,9 +438,8 @@ func (task *taskDesc) complete() bool {
|
|||||||
return task.create != nil && task.end != nil
|
return task.create != nil && task.end != nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// descendents returns all the task nodes in the subtree rooted from this task.
|
// descendants returns all the task nodes in the subtree rooted from this task.
|
||||||
// TODO: the method name is misspelled
|
func (task *taskDesc) descendants() []*taskDesc {
|
||||||
func (task *taskDesc) decendents() []*taskDesc {
|
|
||||||
if task == nil {
|
if task == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -220,7 +220,7 @@ func httpJsonTrace(w http.ResponseWriter, r *http.Request) {
|
|||||||
params.startTime = task.firstTimestamp() - 1
|
params.startTime = task.firstTimestamp() - 1
|
||||||
params.endTime = task.lastTimestamp() + 1
|
params.endTime = task.lastTimestamp() + 1
|
||||||
params.maing = goid
|
params.maing = goid
|
||||||
params.tasks = task.decendents()
|
params.tasks = task.descendants()
|
||||||
gs := map[uint64]bool{}
|
gs := map[uint64]bool{}
|
||||||
for _, t := range params.tasks {
|
for _, t := range params.tasks {
|
||||||
// find only directly involved goroutines
|
// find only directly involved goroutines
|
||||||
@ -244,7 +244,7 @@ func httpJsonTrace(w http.ResponseWriter, r *http.Request) {
|
|||||||
params.mode = modeTaskOriented
|
params.mode = modeTaskOriented
|
||||||
params.startTime = task.firstTimestamp() - 1
|
params.startTime = task.firstTimestamp() - 1
|
||||||
params.endTime = task.lastTimestamp() + 1
|
params.endTime = task.lastTimestamp() + 1
|
||||||
params.tasks = task.decendents()
|
params.tasks = task.descendants()
|
||||||
}
|
}
|
||||||
|
|
||||||
start := int64(0)
|
start := int64(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user