TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Can running goroutines directly read the updated value of writeBarrier?

1 点作者 weiwenhao超过 1 年前
I am working on implementing a concurrent tri-color marking garbage collector. I read some posts that mention that prior to version 1.14, Golang could not forcibly stop goroutines, making it impossible to start GC. My question is, once the global variable runtime.writeBarrier is updated, wouldn&#x27;t the running goroutines read the updated writeBarrier and activate the write barrier? Why is it necessary to wait for the goroutines to stop?<p>CMPL runtime.writeBarrier(SB), $0 JEQ 103 JMP 108

暂无评论

暂无评论