src/Pure/Tools/dump.scala
changeset 70653 f7c5b30fc432
parent 70645 fc27cecb66d8
child 70655 f51955effb02
--- a/src/Pure/Tools/dump.scala	Wed Sep 04 21:42:11 2019 +0200
+++ b/src/Pure/Tools/dump.scala	Wed Sep 04 22:00:38 2019 +0200
@@ -206,24 +206,16 @@
       }
 
 
-      // run
+      // synchronous body
 
       try {
-        val dump_checkpoints = deps.dump_checkpoints
-        def commit(snapshot: Document.Snapshot, status: Document_Status.Node_Status)
-        {
-          if (dump_checkpoints.contains(snapshot.node_name)) {
-            session.protocol_command("ML_Heap.share_common_data")
-          }
-          Consumer.apply(snapshot, status)
-        }
-
         val use_theories_result =
           session.use_theories(used_theories.map(_.theory),
             unicode_symbols = unicode_symbols,
             share_common_data = true,
             progress = progress,
-            commit = Some(commit _))
+            checkpoints = deps.dump_checkpoints,
+            commit = Some(Consumer.apply _))
 
         val bad_theories = Consumer.shutdown()
         val bad_msgs =