]> git.eshelyaron.com Git - emacs.git/commit
GC-mark temporary key values created when sorting (bug#69709)
authorMattias EngdegÄrd <mattiase@acm.org>
Sun, 14 Apr 2024 16:20:47 +0000 (18:20 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Apr 2024 17:12:31 +0000 (19:12 +0200)
commitc7defd4faa72947ab077d3f0c75c4f92a48d9b4e
tree0d4d2a3c263e1c7b98c5a7d525586de4c928dd38
parent64e8c4452ce852db0819f53653e2f1735385dd4a
GC-mark temporary key values created when sorting (bug#69709)

Bug reported and fix proposed by Aris Spathis.

* src/sort.c (merge_markmem): Mark heap-allocated temporary key values.
(tim_sort): Delay key function calls to after marking function has been
registered.
* test/src/fns-tests.el (fns-tests-sort-gc): New test.

(cherry picked from commit 3d3602055264ca3095b7f28ca7e27a6f2782649a)
src/sort.c
test/src/fns-tests.el