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

Fix 2 lock-order-inversion bugs as found by TSan on m-c tests #1378

Merged
merged 3 commits into from
Dec 10, 2020

Conversation

badboy
Copy link
Member

@badboy badboy commented Dec 10, 2020

(Taking this for a try run in m-c to ensure it works before we land this)

This fixes a potential deadlock as found by TSan, when running
mozilla-central tests (`lock-order-inversion`).
Locks should be acquired in the same order across all code paths.
This fixes a potential deadlock as found by TSan, when running
mozilla-central tests (`lock-order-inversion`).
Locks should be acquired in the same order across all code paths.
[Full changelog](https://github.com/mozilla/glean/compare/v33.7.0...main)

* Rust
* Shut down Glean in tests before resetting to make sure they don't mistakenly init Glean twice in parallel.
* Introduce the Memory Distribution metric type in the RLB. [#1376](https://github.com/mozilla/glean/pull/1376)
Copy link
Member Author

Choose a reason for hiding this comment

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

I went ahead and fixed the changelog while I was here.

@badboy
Copy link
Member Author

badboy commented Dec 10, 2020

Copy link
Contributor

@Dexterp37 Dexterp37 left a comment

Choose a reason for hiding this comment

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

Great catches. Would you consider filing a bug for discussing enabling TSan test coverage for the glean SDK?

@badboy
Copy link
Member Author

badboy commented Dec 10, 2020

Great catches. Would you consider filing a bug for discussing enabling TSan test coverage for the glean SDK?

https://bugzilla.mozilla.org/show_bug.cgi?id=1681703

@badboy
Copy link
Member Author

badboy commented Dec 10, 2020

it's green!

@badboy badboy merged commit 303329e into main Dec 10, 2020
@badboy badboy deleted the tsan-found-an-issue branch December 10, 2020 12:49
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.

2 participants