leeyiyu commented on PR #6883:
URL: https://github.com/apache/rocketmq/pull/6883#issuecomment-1584298940

   > 
   
   
   
   > 
   
   
   
   > check this ,https://juejin.cn/post/7094561581631012878
   > 
   > IMO, The original code has no problem.
   
   You can run this Case,CPU utilization will be 100%
   
   ```
   @Test
       public void computeIfAbsent() {
   
           ConcurrentHashMap<String, String> map = new ConcurrentHashMap<>();
           ConcurrentHashMapUtils.computeIfAbsent(map, "AaAa", key -> 
map.computeIfAbsent("BBBB", key2 -> "42"));
       }
   ```


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