zuochunwei opened a new pull request #7144:
URL: https://github.com/apache/incubator-doris/pull/7144


   issue description:
   1. setting _report_thread_active to false is not necessary protected by 
_report_thread_lock, because _report_thread_active's type is bool, writing data 
is multi-threadly safety if size <= marchine word length
   2. report_profile thread terminates early is possiable, in the function 
report_profile(), while (_report_thread_active) may break if  
_report_thread_active is false,  the thread of calling open() may be scheduled 
out between _report_thread_started_cv.wait(l) and _report_thread_active = true, 
we should not assume that how long time elapsed between a thread be scheduled 
twice


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