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

prefs: Make the preferences be guarded by a RwLock instead of a Mutex #12275

Merged
merged 1 commit into from Jul 7, 2016

Conversation

@emilio
Copy link
Member

emilio commented Jul 5, 2016


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because internals.

This should reduce unnecessary locks that happen when we read preferences.


This change is Reviewable

This should reduce unnecessary locks that happen when we read preferences.
@jdm
Copy link
Member

jdm commented Jul 5, 2016

@bors-servo: r+
Good call.

@bors-servo
Copy link
Contributor

bors-servo commented Jul 5, 2016

📌 Commit 2e8f230 has been approved by jdm

@highfive highfive assigned jdm and unassigned pcwalton Jul 5, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Jul 6, 2016

Testing commit 2e8f230 with merge d51dd40...

bors-servo added a commit that referenced this pull request Jul 6, 2016
prefs: Make the preferences be guarded by a RwLock instead of a Mutex

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [x] These changes do not require tests because internals.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

This should reduce unnecessary locks that happen when we read preferences.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12275)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 6, 2016

💔 Test failed - linux-rel

@emilio
Copy link
Member Author

emilio commented Jul 6, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jul 7, 2016

Testing commit 2e8f230 with merge 5dae3cc...

bors-servo added a commit that referenced this pull request Jul 7, 2016
prefs: Make the preferences be guarded by a RwLock instead of a Mutex

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [x] These changes do not require tests because internals.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

This should reduce unnecessary locks that happen when we read preferences.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12275)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 7, 2016

@bors-servo bors-servo merged commit 2e8f230 into servo:master Jul 7, 2016
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.