VariableLinkedBlockingQueue's capacity can be not volatile #819
Inuyasha-Monster
started this conversation in
General
Replies: 2 comments 1 reply
-
add another point, that because there is no lock scope in the method that partially accesses the field |
Beta Was this translation helpful? Give feedback.
0 replies
-
In the client, this data structure is used to ensure inbound deliveries on a single channel. Since channels must not be shared between threads (this has been documented for many years), I don’t see a reason to use any synchronization mechanism on this field. In other words, why change it now, a decade into the current consumer dispatch design? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
as title , the field
capacity
not volatile , is there some concurrency issue ?Beta Was this translation helpful? Give feedback.
All reactions