jorendorff / cell-gc

A very small GC in Rust, with a safe API
MIT License
61 stars 4 forks source link

lisp: When you run a script with multiple forms in it, continuations are incomplete #33

Open jorendorff opened 7 years ago

jorendorff commented 7 years ago

There is an optimization in toplevel.scm that is broken by continuations.

In short, we break scripts into chunks, to maximize our chances of being able to use the GET_STATIC op instead of GET_DYNAMIC. But now capturing a continuation does not capture the whole rest of the script, a bad bug.