aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeff Walsh2024-11-05 23:09:56 +1100
committerGerd Möllmann2024-11-06 11:52:01 +0100
commitc42b90b21a4efb3c5a8ebc6e3bd6be2908d1f2ac (patch)
tree397aa521cda535cf8284826db6a076d35b58ece2 /src
parent907c735402dd26e721ca8534df1e326fc53a3012 (diff)
downloademacs-c42b90b21a4efb3c5a8ebc6e3bd6be2908d1f2ac.tar.gz
emacs-c42b90b21a4efb3c5a8ebc6e3bd6be2908d1f2ac.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/atimer.c9
1 files changed, 8 insertions, 1 deletions
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 @@ You should have received a copy of the GNU General Public License
17along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ 17along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
18 18
19#include <config.h> 19#include <config.h>
20#include "igc.h"
20 21
21#ifdef WINDOWSNT 22#ifdef WINDOWSNT
22#define raise(s) w32_raise(s) 23#define raise(s) w32_raise(s)
@@ -132,7 +133,13 @@ start_atimer (enum atimer_type type, struct timespec timestamp,
132 free_atimers = t->next; 133 free_atimers = t->next;
133 } 134 }
134 else 135 else
135 t = xmalloc (sizeof *t); 136 {
137#ifdef HAVE_MPS
138 t = igc_xzalloc_ambig (sizeof *t);
139#else
140 t = xmalloc (sizeof *t);
141#endif
142 }
136 143
137 /* Fill the atimer structure. */ 144 /* Fill the atimer structure. */
138 memset (t, 0, sizeof *t); 145 memset (t, 0, sizeof *t);