aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2014-04-03 23:46:47 -0400
committerbors-servo <release+servo@mozilla.com>2014-04-03 23:46:47 -0400
commitfe1615bc3dc3bd2f8d3fbb6f776e701b4c6dda76 (patch)
treec81d12c8a55fd25fc79c3402a93806ddd2ef4d63 /src
parent3ec22157ca20227cd2d648744b6c711ed0ae8366 (diff)
parentccc7c8b497d23a5efd4d80e25769be97b65c27fd (diff)
downloadservo-fe1615bc3dc3bd2f8d3fbb6f776e701b4c6dda76.tar.gz
servo-fe1615bc3dc3bd2f8d3fbb6f776e701b4c6dda76.zip
auto merge of #2033 : larsbergstrom/servo/disable_parallel_layout, r=metajack
Until we land a fix for #1926, set the default number of threads for parallel layout to 1 to avoid races, a double-borrow, and task failure resulting in all cores spinning indefinitely. r? @metajack
Diffstat (limited to 'src')
-rw-r--r--src/components/util/opts.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/util/opts.rs b/src/components/util/opts.rs
index 668dc4be429..9beaf6ce1e5 100644
--- a/src/components/util/opts.rs
+++ b/src/components/util/opts.rs
@@ -8,8 +8,6 @@
use azure::azure_hl::{BackendType, CairoBackend, CoreGraphicsBackend};
use azure::azure_hl::{CoreGraphicsAcceleratedBackend, Direct2DBackend, SkiaBackend};
use getopts;
-use std::cmp;
-use std::rt;
use std::io;
use std::os;
@@ -144,7 +142,9 @@ pub fn from_cmdline_args(args: &[~str]) -> Option<Opts> {
let layout_threads: uint = match opt_match.opt_str("y") {
Some(layout_threads_str) => from_str(layout_threads_str).unwrap(),
- None => cmp::max(rt::default_sched_threads() * 3 / 4, 1),
+ // FIXME: Re-enable the below computation, once a fix for #1926 lands.
+ // cmp::max(rt::default_sched_threads() * 3 / 4, 1),
+ None => 1,
};
Some(Opts {