src/Pure/Tools/build.scala
changeset 51300 7cdb86c8eb30
parent 51297 d9f3d91208af
child 51397 03b586ee5930
--- a/src/Pure/Tools/build.scala	Thu Feb 28 11:40:23 2013 +0100
+++ b/src/Pure/Tools/build.scala	Thu Feb 28 12:09:32 2013 +0100
@@ -297,9 +297,12 @@
       val graph = tree.graph
       val sessions = graph.keys.toList
 
-      val timings = sessions.map((name: String) =>
-        if (tree(name).options.bool("parallel_proofs_reuse_timing")) (name, load_timings(name))
-        else (name, (Nil, 0.0)))
+      val timings =
+        sessions.par.map((name: String) =>
+          Exn.capture {
+            if (tree(name).options.bool("parallel_proofs_reuse_timing")) (name, load_timings(name))
+            else (name, (Nil, 0.0))
+          }).toList.map(Exn.release(_))
       val command_timings =
         Map(timings.map({ case (name, (ts, _)) => (name, ts) }): _*).withDefaultValue(Nil)
       val session_timing =