You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/06/14 08:18:38 UTC

[GitHub] [skywalking] kezhenxu94 edited a comment on issue #2874: Rewrite AtomicRangeInteger for higher performance

kezhenxu94 edited a comment on issue #2874: Rewrite AtomicRangeInteger for higher performance
URL: https://github.com/apache/skywalking/pull/2874#issuecomment-502015270
 
 
   > @kezhenxu94
   > you should use a thread-safe set
   > `final Set<Integer> seen = Collections.synchronizedSet(new HashSet<Integer>());`
   
   uh ha, yes, sorry for my mistake, but `Collections.synchronizedSet(new HashSet<Integer>());` is immutable, that's another question, I'll update my comment soon

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