main: Disable parallel selector matching due to races.

To verify, turn ON optimizations and go to:

http://en.wikipedia.org/wiki/Yellow_River
This commit is contained in:
Patrick Walton 2013-11-26 16:44:03 -08:00
parent a76f761ed3
commit 362c2718f7

View file

@ -46,7 +46,9 @@ impl MatchMethods for AbstractNode<LayoutView> {
} }
} }
fn match_subtree(&self, stylist: RWArc<Stylist>) { fn match_subtree(&self, stylist: RWArc<Stylist>) {
let num_tasks = rt::default_sched_threads() * 2; // FIXME(pcwalton): Racy. Parallel CSS selector matching is disabled.
//let num_tasks = rt::default_sched_threads() * 2;
let num_tasks = 1;
let mut node_count = 0; let mut node_count = 0;
let mut nodes_per_task = vec::from_elem(num_tasks, ~[]); let mut nodes_per_task = vec::from_elem(num_tasks, ~[]);