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>2016-11-17 22:18:39 -0800
commitb97b9f8199d1f65d2304b035c4f99b5a1c76f61b (patch)
treedf65524df6271dde7107a32c6a3db93dd603f879 /src/lisp/ao_lisp_atom.c
parent954bc72d5822e0f5666e80764e798c10b1eb541d (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);
}