+
Skip to content

Fix thread-safety issue in FixtureSpecificationMapper. #260

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

Merged
merged 1 commit into from
Feb 7, 2018

Conversation

nigelcharman
Copy link
Member

From https://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html, instances of this class are not safe for use by multiple concurrent threads.
This fix wraps the ServiceLoader instance in a ThreadLocal so we have one ServiceLoader per thread.
Fixes #259.

From https://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html, instances of this class are not safe for use by multiple concurrent threads.
This fix wraps the ServiceLoader instance in a ThreadLocal so we have one ServiceLoader per thread.
Fixes #259.
@nigelcharman nigelcharman merged commit 649013a into master Feb 7, 2018
@nigelcharman nigelcharman deleted the fix-exception-on-parallel-running branch May 22, 2023 00:17
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.

Exceptions when using ParallelRunExtension
1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载