Skip to content

Commit 4c4b32b

Browse files
author
wziww
committed
fix
1 parent b42978c commit 4c4b32b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime_stack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func callers(skip int, pcbuf []uintptr) int {
266266
}
267267
```
268268
`callers` 函数大部分逻辑和之前的 `runtime.Stack`函数中 `traceback` 大同小异,唯一不同的就是
269-
`gentraceback` 调用的入参 `max` 参数是人为设置的,并且进针对当前 `goroutine` 进行
269+
`gentraceback` 调用的入参 `max` 参数是人为设置的,并且仅针对当前 `goroutine` 进行
270270
## 总结
271271
- stack dump 操作是否会有性能损耗(是),损耗在哪儿
272272
- 与调用方式有关,如果是通过类似 `runtime.Stack` 方法打印所有堆栈信息的, 会触发 `STW` 操作,是一个代价比较大的操作

0 commit comments

Comments
 (0)