lhsoft commented on issue #3030:
URL: https://github.com/apache/brpc/issues/3030#issuecomment-3095648206

   @chenBright  @zhengJade 有没有可能是下面这段代码的一致性导致的问题呢:
   
   ```
       while (g->_last_context_remained) {
           RemainedFn fn = g->_last_context_remained;
           g->_last_context_remained = NULL;
           fn(g->_last_context_remained_arg);
           g = BAIDU_GET_VOLATILE_THREAD_LOCAL(tls_task_group);
       }
   ```
   
   
如果当前线程的TaskGroup::_last_context_remained(这时候是priority_to_run)在别的线程被运行过,但因为一致性问题导致当前线程会错误的运行priority_to_run,这样就有一个额外的task变成priority
 task。如果这个task刚好排在epoll前面,就有可能导致大家都饿死


-- 
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]

Reply via email to