mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 22:05:44 +00:00
servo: Merge #20310 - Update the MULTIPROCESS static when changing default options (from fabricedesre:opt-multiprocess); r=jdm
<!-- Please describe your changes on the following line: --> When the options are set not from the command line but by calling `set_defaults()` which is common for embedders, the MULTIPROCESS static is not set, and so the setting is ignored. This patch fixes that. --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because we have no tests around that. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: b93f153ed59fb993af306bd8c540887196021f87 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 6c85e2e3c9e0ef460304606c14edc356bdd721af
This commit is contained in:
parent
4a54352ab1
commit
68f45d973d
@ -911,6 +911,9 @@ lazy_static! {
|
||||
}
|
||||
|
||||
pub fn set_defaults(opts: Opts) {
|
||||
// Set the static to the new default value.
|
||||
MULTIPROCESS.store(opts.multiprocess, Ordering::SeqCst);
|
||||
|
||||
unsafe {
|
||||
assert!(DEFAULT_OPTIONS.is_null());
|
||||
assert_ne!(DEFAULT_OPTIONS, INVALID_OPTIONS);
|
||||
|
Loading…
Reference in New Issue
Block a user