summaryrefslogtreecommitdiff
path: root/src/lisp/ao_lisp_atom.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-06 10:53:46 -0800
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:50 -0800
commit6e5c1308ce33a864095eae02e7db18b0e043ab6e (patch)
tree3b77c2de9f95b73a39a63533000898196c855c7c /src/lisp/ao_lisp_atom.c
parentd8cf97fe22acefab40d7bb321138e46d4483fef7 (diff)
altos/lisp: convert GC to non-recursive
Use a boolean array to note cons cells which would otherwise recurse, then loop until that array is empty. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_atom.c')
-rw-r--r--src/lisp/ao_lisp_atom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lisp/ao_lisp_atom.c b/src/lisp/ao_lisp_atom.c
index 5f1bcda0..41ba97f5 100644
--- a/src/lisp/ao_lisp_atom.c
+++ b/src/lisp/ao_lisp_atom.c
@@ -48,7 +48,7 @@ static void atom_move(void *addr)
struct ao_lisp_atom *atom = addr;
for (;;) {
- if (ao_lisp_poly_move(&atom->next))
+ if (ao_lisp_poly_move(&atom->next, 0))
break;
atom = ao_lisp_poly_atom(atom->next);
}