about summary refs log tree commit diff stats
path: root/036refcount.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-12-05 01:15:10 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-12-05 01:15:10 -0800
commitd51abbf123f2411624b8c849f72624f1c70c4224 (patch)
tree059e03aa80e74df2d2033870bc892e7d641c579a /036refcount.cc
parent26b4bdc8b3b1d1f2f4b4dae1e7d2b89c7e286b1b (diff)
downloadmu-d51abbf123f2411624b8c849f72624f1c70c4224.tar.gz
4139
Diffstat (limited to '036refcount.cc')
-rw-r--r--036refcount.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/036refcount.cc b/036refcount.cc
index 69c00d05..075060ba 100644
--- a/036refcount.cc
+++ b/036refcount.cc
@@ -75,12 +75,7 @@ void decrement_refcount(int old_address, const type_tree* payload_type, int payl
   put(Memory, old_address, old_refcount);
   if (old_refcount < 0) {
     cerr << "Negative refcount!!! " << old_address << ' ' << old_refcount << '\n';
-    if (Trace_stream) {
-      cerr << "Saving trace to last_run.\n";
-      ofstream fout("last_run");
-      fout << Trace_stream->readable_contents("");
-      fout.close();
-    }
+    if (Trace_stream) Trace_stream->dump();
     exit(1);
   }
   // End Decrement Refcount(old_address, payload_type, payload_size)