no heap sharing for empty session (e.g. HOL-ODE);
--- a/src/Pure/Tools/build.scala Wed Nov 01 12:31:53 2017 +0100
+++ b/src/Pure/Tools/build.scala Wed Nov 01 13:06:01 2017 +0100
@@ -227,8 +227,8 @@
("ISABELLE_ML_DEBUGGER" -> options.bool("ML_debugger").toString)
def save_heap: String =
- "ML_Heap.share_common_data (); ML_Heap.save_child " +
- ML_Syntax.print_string_bytes(File.platform_path(output))
+ (if (info.theories.isEmpty) "" else "ML_Heap.share_common_data (); ") +
+ "ML_Heap.save_child " + ML_Syntax.print_string_bytes(File.platform_path(output))
if (pide && !Sessions.is_pure(name)) {
val resources = new Resources(deps(parent))