Lin807188583 commented on PR #3418: URL: https://github.com/apache/brpc/pull/3418#issuecomment-5121129572
确认存在丢唤醒竞态。worker 的"拍快照"和"登记 waiter"不是原子的,producer 卡在这个窗口判断 has_waiting_workers() 为 0 就跳过了 signal_task(),但 _pending_signal 没更新。应该始终更新 _pending_signal,只跳过 futex_wake。现有 --parking_lot_no_signal_when_no_waiter 已实现这个。先关闭 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
