Move some stuff out of lock protection in split()

We shouldn't need lock protection to increment
splitPointsCnt and set curSplitPoint of masterThread.

Anyhow because this code is very tricky and prone to
races bound the change in a single patch.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2012-02-19 10:32:06 +01:00
parent 821e1c7233
commit 3441e0075d
2 changed files with 9 additions and 8 deletions

View File

@@ -1906,9 +1906,6 @@ void Thread::idle_loop(SplitPoint* sp_master) {
Threads[master].wake_up();
}
}
// In helpful master concept a master can help only a sub-tree of its split
// point, and because here is all finished is not possible master is booked.
assert(!is_searching);
}