-
When I read source code of skywalking agent core, I notice that the Buffer class doesn't have any synchronization on object array read and write operations. Would it be a problem if the buffer is heavily written by different threads? Would it be better to use ArrayBlockingQueue to implement the same functionality without blocking access? source code link: org/apache/skywalking/apm/commons/datacarrier/buffer/Buffer.java |
Beta Was this translation helpful? Give feedback.
Answered by
wu-sheng
Sep 1, 2021
Replies: 1 comment 5 replies
-
I don't know what do you mean not thread safe. They are safe. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
wu-sheng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know what do you mean not thread safe. They are safe.