Skip to content

Fix thread-safety issue in AutoValueProvidersFactory#601

Merged
dtchepak merged 1 commit intonsubstitute:masterfrom
zvirja:fix-providers-concurrency-issue
Dec 17, 2019
Merged

Fix thread-safety issue in AutoValueProvidersFactory#601
dtchepak merged 1 commit intonsubstitute:masterfrom
zvirja:fix-providers-concurrency-issue

Conversation

@zvirja
Copy link
Copy Markdown
Contributor

@zvirja zvirja commented Dec 15, 2019

Fixes #600

Use thread-safe option of Lazy.

Also registered a tech dept in #551 to improve this place in future major update. We cannot, unfortunately, do it now, as that requires breaking changes.

Copy link
Copy Markdown
Member

@dtchepak dtchepak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zvirja !

@dtchepak dtchepak merged commit b0d1dac into nsubstitute:master Dec 17, 2019
@zvirja zvirja deleted the fix-providers-concurrency-issue branch December 17, 2019 23:07
@zvirja
Copy link
Copy Markdown
Contributor Author

zvirja commented Dec 17, 2019

@dtchepak Does it worth making a patch release? It’s unlikely we could want to fix something else ;)

@brianfeucht
Copy link
Copy Markdown

Any update on getting a patch release for this?

@dtchepak
Copy link
Copy Markdown
Member

@brianfeucht Sorry for the delay, I was hoping to batch up some other changes but haven't been able to get those done. I've just released 4.2.2 that includes this change, please let me know how it goes.

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.

Intermittent ArgumentNullException thrown in AutoTaskProvider

3 participants