chenBright commented on issue #2983:
URL: https://github.com/apache/brpc/issues/2983#issuecomment-3388179574

   > Jumping precedes tracing, from the tracer's perspective the current 
implementation set m->traced = true first, then find its status 
TASK_STATUS_JUMPING and block at WaitForJumping(m). When the bthread is about 
to jumping to run, it finds it is traced so block at WaitForTracing(m).
   
   In this scenario, bthread first locks and sets status to 
TASK_STATUS_JUMPING. At this time, tracing=false, so WaitForTracing() will not 
be called.
   
https://github.com/apache/brpc/blob/4eeb5e260af165291f95f30f0fa64f9ff67ba192/src/bthread/task_tracer.cpp#L139-L163


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