ysj1173886760 commented on issue #845:
URL: https://github.com/apache/brpc/issues/845#issuecomment-1383387003

   > > 在Mac M1上也遇到了相同的问题。在并发数偏高的时候会出现`sched_to itself`的错误。
   > > 尝试去除掉这次修改中的`if #define(_linux_)`后问题仍然存在。
   > > 奇怪的是在我把我自己的项目设置成Release模式构建之后,就不会出现`sched_to itself`的错误了。
   > 
   > 使用的是master的最新代码吗?
   
   是的。尝试使用了这个PR中的修改--在Mac下禁用了那两个函数的优化,仍然会出现问题。后来试了几次发现-O2 
-O1优化下可以正常运行,-O0就会出现`sched_to 
itself`以及`task_group.cpp:298`出现空指针的问题。目前还不清楚原因,就在我自己的项目中用-O2先缓解这个问题了。
   我是在自己的项目中将brpc作为subdirectory引入的,不清楚我的Cmake中的编译选项会不会影响到brpc的编译。


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