mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Explicitly register rayon threads, rather than assuming that as the default.
MozReview-Commit-ID: E4kUyy8HjmV
This commit is contained in:
parent
531397ff15
commit
90e9bbbadc
3 changed files with 10 additions and 9 deletions
|
@ -15,6 +15,7 @@ use shared_lock::SharedRwLock;
|
|||
use std::cmp;
|
||||
use std::env;
|
||||
use std::ffi::CString;
|
||||
use thread_state;
|
||||
|
||||
/// Global style data
|
||||
pub struct GlobalStyleData {
|
||||
|
@ -39,6 +40,7 @@ fn thread_name(index: usize) -> String {
|
|||
}
|
||||
|
||||
fn thread_startup(index: usize) {
|
||||
thread_state::initialize_layout_worker_thread();
|
||||
unsafe {
|
||||
Gecko_SetJemallocThreadLocalArena(true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue