Skip to content

Commit 9972aee

Browse files
authored
Auto merge of #26106 - qrasmont:fix-26088-bhm-opt-in-multiproc, r=gterzian
Check the BHM option before starting it in multi-process mode. In multi-process mode, if the BHM option is set start with one otherwise don't. I didn't add a test for this. However if I should I'd be happy to be pointed to where similar tests are done (meaning tests of options yielding the expected state) because I didn't find my way in all those tests. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #26088 - [ ] There are tests for these changes OR - [x] These changes do not require tests because they are minor enough to not require one.
2 parents f7d3d4a + 8b9390d commit 9972aee

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

components/servo/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,8 +1016,11 @@ pub fn run_content_process(token: String) {
10161016
create_sandbox();
10171017
}
10181018

1019-
let background_hang_monitor_register =
1020-
unprivileged_content.register_with_background_hang_monitor();
1019+
let background_hang_monitor_register = if opts::get().background_hang_monitor {
1020+
unprivileged_content.register_with_background_hang_monitor()
1021+
} else {
1022+
None
1023+
};
10211024

10221025
// send the required channels to the service worker manager
10231026
let sw_senders = unprivileged_content.swmanager_senders();

0 commit comments

Comments
 (0)