From 080541ae5463eda9b20d9ec92cb41202ba21d87c Mon Sep 17 00:00:00 2001 From: Jeff Walsh Date: Tue, 5 Nov 2024 23:09:56 +1100 Subject: [PATCH] Mark atimer allocation as ambiguous root * src/atimer.c (start_atimer): Time could be passed a lisp object for data, we should allocate this as an ambiguous root --- src/atimer.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/atimer.c b/src/atimer.c index 8253ae3a166..5bd282a310d 100644 --- a/src/atimer.c +++ b/src/atimer.c @@ -17,6 +17,7 @@ along with GNU Emacs. If not, see . */ #include +#include "igc.h" #ifdef WINDOWSNT #define raise(s) w32_raise(s) @@ -132,7 +133,13 @@ start_atimer (enum atimer_type type, struct timespec timestamp, free_atimers = t->next; } else - t = xmalloc (sizeof *t); + { +#ifdef HAVE_MPS + t = igc_xzalloc_ambig (sizeof *t); +#else + t = xmalloc (sizeof *t); +#endif + } /* Fill the atimer structure. */ memset (t, 0, sizeof *t); -- 2.47.0