Skip to content

Commit 3938574

Browse files
committed
sync content: 2026-03-05 10:18:29
1 parent 988d48f commit 3938574

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/content/posts/技术分享/Go 相关/Go 调度器.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ func (pp *p) init(id int32) {
125125
func newproc(fn *funcval) {
126126
...
127127
// systemstack 之前也提过,他会切换到 g0 的栈进行执行
128-
// g0 的栈,本质上其实就是由操作系统管理的线程在用户态执行代码的线程栈。
129-
// 它并不属于常规的 goroutine 栈,这个栈归操作系统管而不是 go 的运行时。
128+
// g0 的栈,本质上其实就是一个初始栈空间更大的 goroutine,细节暂时未研究。
130129
systemstack(func() {
131130
// 1. 创建Goroutine结构体
132131
// newproc1是真正负责分配和初始化g结构体的函数。

0 commit comments

Comments
 (0)