You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2019/03/27 13:04:26 UTC

[GitHub] [incubator-brpc] hairet opened a new issue #706: 关于signal_task里的ParkingLot _pending_signal32位可能溢出问题

hairet opened a new issue #706: 关于signal_task里的ParkingLot _pending_signal32位可能溢出问题
URL: https://github.com/apache/incubator-brpc/issues/706
 
 
   **Describe the bug (描述bug)**
   最近需要对bthread调度做一些定制化,然后看到了ParkingLot的_pending_signal只有32位,虽然TaskControl里有4个ParkingLot,那是不是可以理解成只要有4*2^31的bthread创建+signal,框架就会stop了?这样在某些滥用bthread场景似乎会有问题?具体代码见下面截图
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   https://github.com/apache/incubator-brpc/blob/master/src/bthread/parking_lot.h
   ![image](https://user-images.githubusercontent.com/7167017/55077923-e44bb880-50d3-11e9-92d8-c73d1dfb6456.png)
   
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org