]> git.eshelyaron.com Git - emacs.git/commit
mark_overlays: Use the normal ITREE_FOREACH
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 2 Oct 2022 16:21:13 +0000 (12:21 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 2 Oct 2022 16:21:13 +0000 (12:21 -0400)
commitb8fbd42f0a7caa4cd9e2d50dd4e4b2101ac78acd
tree25be12b466304f493f3f49857f8b26a7d85f2f7a
parentba5fe8e7895a2cbfd2d666ca88c0ed96a73fbe29
mark_overlays: Use the normal ITREE_FOREACH

This commit basically reverts commit 5b954f8f9.  The problem of nested
iterations hasn't been fixed in the mean time, but since the GC can
run arbitrary ELisp code (via `post-gc-hook`), running the GC from
within an itree iteration is already unsafe anyway :-(

* src/alloc.c (mark_overlays): Delete function.
(mark_buffer): Use ITREE_FOREACH.
src/alloc.c
src/itree.h