fix over-release issue about Token and Hosts of QNServerConfigSynchro…#425
fix over-release issue about Token and Hosts of QNServerConfigSynchro…#425lyandy wants to merge 1 commit intoqiniu:masterfrom
Conversation
|
@lyandy 读写都需要加锁,感谢您的 pr |
考虑过 读 也加锁,但相比 读,写 造成 理论上 读写 都要加锁会更安全些。但仔细分析即使 读写 都加锁 也不能完全避免多线程野指针问题。 举个例子,读 我真正要用最初 读 到的A值时,A就变成了野指针。 如果要彻底解决多线程安全问题,就要在所有用到 读写 综上,针对 ref: #423 写 高频崩溃,我提的PR足以解决此问题 |
这里讨论的 |
sentry crash stacks: https://app-sentry.taou.com/share/issue/8c4977e7073c4e0996b1248f93025c37
ref: #423