-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STNG-8 Use concurrent versions of HashMap, TreeMap, HashSet #193
base: dev
Are you sure you want to change the base?
Conversation
…te synchronized keywords at EBL Surrender. * Note that 'synchronized' on a method does only synchronize threads on that particular method, not on all methods in the same class also changing the same maps! * EBL Surrender: Remove overridden methods, which just only call super (without it, it behaves the same)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Please see internal Jira comment.]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let's discuss this before proceeding with the change, because "synchronized" was in place in the ActionPromptsQueue because most operations affect both collections in parallel.
private final LinkedList<JsonNode> pendingActions = new LinkedList<>(); | ||
|
||
synchronized void clear() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let's discuss this before proceeding with the change, because "synchronized" was in place because most operations affect both collections in parallel.
Use concurrent versions of HashMap, TreeMap, HashSet, and remove 2 obsolete synchronized keywords at EBL Surrender.
Question: should I perform any extra verification on the correctness of our code, except for all the checks we've build in our GH pipelines already?