New issue
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
2.7.4 针对Go指针检查的原理描述错误 #617
Comments
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
原文中描述如下:
函数
_cgo_tsan_acquire
应是Go语言对Thread Sanitizer的兼容,而非检查cgo函数返回的结果。cgochecker检查代码位于cgocall.go中。
具体针对该案例来说,go编译器会生成函数
_cgoexp_95d42b8e6230_getGoPtr
。在该函数中,会调用runtime.cgoCheckResult
函数,该函数是真正检查返回结果的指针。附上反编译代码:
The text was updated successfully, but these errors were encountered: