We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var a string var done bool func setup() { a = "hello, world" done = true } func Test(t *testing.T) { go setup() for !done { } print(a) }
在Ubuntu操作系统: go1.13 会陷入死循环 go1.14及以上,可以正常运行,输出hello world
在MacOS操作系统: go1.13及以上均可以正常运行,输出helloworld
作者知道什么原因吗?
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
var a string var done bool func setup() { a = "hello, world" done = true } func Test(t *testing.T) { go setup() for !done { } print(a) } 在Ubuntu操作系统: go1.13 会陷入死循环 go1.14及以上,可以正常运行,输出hello world 在MacOS操作系统: go1.13及以上均可以正常运行,输出helloworld 作者知道什么原因吗?
嘿,兄弟,我想我说错了,是在单核才会存在这个问题。多核情况下不应该会出现这个问题才对。
No branches or pull requests
在Ubuntu操作系统:
go1.13 会陷入死循环
go1.14及以上,可以正常运行,输出hello world
在MacOS操作系统:
go1.13及以上均可以正常运行,输出helloworld
作者知道什么原因吗?
The text was updated successfully, but these errors were encountered: