Skip to content
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

Solve thread safety problems in Plugin, BungeeSecurityManager, and PluginManager #2945

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

A248
Copy link

@A248 A248 commented Aug 20, 2020

Fixes all 3 issues elaborated in #2932 .

@A248 A248 force-pushed the thread-safety branch 2 times, most recently from c48e08d to efe265c Compare August 20, 2020 01:37
@Janmm14
Copy link
Contributor

Janmm14 commented Aug 20, 2020

sugesting to remove the formatter from pr title ;)

@A248 A248 changed the title Solve thread safety problems in Plugin, BungeeSecurityManager, PluginManager, and ConciseFormatter Solve thread safety problems in Plugin, BungeeSecurityManager, and PluginManager Aug 20, 2020
@aikar
Copy link

aikar commented Sep 4, 2020

@linsaftw responding here instead of the issue because this is the appropriate place.

It would not be a good idea to move to method based synchronized.
That would cause unrelated topics to contend with each other that do not need to, and holds locks for longer than necessary.

Double checked lock is a popular pattern too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants