lizhanhui commented on issue #4902:
URL: https://github.com/apache/rocketmq/issues/4902#issuecomment-1241463781

   > 虽然是sleep 0,但因操作系统时钟精度原因,实际会sleep 几毫秒,不同的系统,精度可能值会不一样; 删除之后,就没有sleep的效果了;
   
   No. It is not true. The intention of sleep(0) is to introduce safe points. 
When there is an ongoing GC, this thread will take fewer milliseconds to reach 
a safe point. This would be helpful if the available memory runs low.  See 
https://stackoverflow.com/questions/67232199/how-to-reduce-time-taken-on-threads-reaching-safepoint-sync-state


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

Reply via email to