summaryrefslogtreecommitdiff
path: root/miralib/ex/makebug.m
diff options
context:
space:
mode:
Diffstat (limited to 'miralib/ex/makebug.m')
-rw-r--r--miralib/ex/makebug.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/miralib/ex/makebug.m b/miralib/ex/makebug.m
new file mode 100644
index 0000000..b32d4bb
--- /dev/null
+++ b/miralib/ex/makebug.m
@@ -0,0 +1,18 @@
+> makebug size = [Tofile "/tmp/big.m" (big_def size)]
+> big_def n = "big_list\n=[\n" ++ lay (rep n " \"hello\",") ++ " \"hello\"]\n"
+
+This tests garbage collection during compilation. First turn on gc
+reports by saying
+ /gc
+
+To generate /tmp/big.m of chosen size say, e.g.
+ makebug 10000
+to get mira to compile the result say
+ /f /tmp/big
+Saying this repeatedly (or /f %) will force recompilations
+Or from the command line after quitting mira
+ rm /tmp/big.x #to force recompilation
+ mira -make -gc /tmp/big
+
+If the heap becomes corrupted you will see strange type errors or
+"impossible event" messages. From Rick Morgan at Durham, May 1990.