about summary refs log tree commit diff stats
path: root/shell/sandbox.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-17 22:28:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-17 22:33:28 -0700
commitc026dba0067d2ce476d9777087f233dacf868f92 (patch)
treeb51b178ad9fbee59da68c6e40012b53caa3782df /shell/sandbox.mu
parent60cab88acec8c655346e5e4396ebfcb3a03b5b23 (diff)
downloadmu-c026dba0067d2ce476d9777087f233dacf868f92.tar.gz
shell: reenable the trace
We now have a couple of protections:
  - if we get close to running out of space in the trace we drop in an
    error
  - if we run out of space in the trace we stop trying to append
  - if there are errors we cancel future evaluations

This is already much nicer. You can't do much on the Mu computer, but at
least it gracefully gives up and shows its limitations. On my computer
the Mu shell tries to run computations for about 20s before giving up.
That seems at the outer limit of what interactivity supports. If things
take too long, test smaller chunks.
Diffstat (limited to 'shell/sandbox.mu')
-rw-r--r--shell/sandbox.mu2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/sandbox.mu b/shell/sandbox.mu
index 944bc88d..1d9e2289 100644
--- a/shell/sandbox.mu
+++ b/shell/sandbox.mu
@@ -29,7 +29,7 @@ fn initialize-sandbox _self: (addr sandbox), screen-and-keyboard?: boolean {
   }
   #
   var trace-ah/eax: (addr handle trace) <- get self, trace
-#?   allocate trace-ah
+  allocate trace-ah
   var trace/eax: (addr trace) <- lookup *trace-ah
   initialize-trace trace, 0x8000/lines, 0x80/visible-lines
   var cursor-in-data?/eax: (addr boolean) <- get self, cursor-in-data?