// Check for racefuncenter will encounter racefuncexit and vice versa.
// Allow calls to panic*
default:
- // If we encounterd any call, we need to keep racefunc*,
+ // If we encountered any call, we need to keep racefunc*,
// for accurate stacktraces.
return false
}
return task.create != nil && task.end != nil
}
-// descendents returns all the task nodes in the subtree rooted from this task.
-// TODO: the method name is misspelled
-func (task *taskDesc) decendents() []*taskDesc {
+// descendants returns all the task nodes in the subtree rooted from this task.
+func (task *taskDesc) descendants() []*taskDesc {
if task == nil {
return nil
}
params.startTime = task.firstTimestamp() - 1
params.endTime = task.lastTimestamp() + 1
params.maing = goid
- params.tasks = task.decendents()
+ params.tasks = task.descendants()
gs := map[uint64]bool{}
for _, t := range params.tasks {
// find only directly involved goroutines
params.mode = modeTaskOriented
params.startTime = task.firstTimestamp() - 1
params.endTime = task.lastTimestamp() + 1
- params.tasks = task.decendents()
+ params.tasks = task.descendants()
}
start := int64(0)