Subject: [PATCH] * src/igc.c (root_create_terminal_list): Create exact root

From: Helmut Eller <[email-masked]>
Date: Tue, 27 May 2025 09:38:55 +0200

It seems that terminal_list doesn't need to be an ambiguous root.

>From 823772e24d770ae04068ce6812a9e113551a13be Mon Sep 17 00:00:00 2001
From: Helmut Eller <[email-masked]>
Date: Tue, 27 May 2025 08:30:48 +0200
Subject: [PATCH] * src/igc.c (root_create_terminal_list): Create an exact
 root.

---
 src/igc.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/igc.c b/src/igc.c
index 6a34610533b..9c3c8e82758 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -2891,14 +2891,6 @@ root_create_buffer (struct igc *gc, struct buffer *b)
   root_create_ambig (gc, start, end, "buffer");
 }
 
-static void
-root_create_terminal_list (struct igc *gc)
-{
-  void *start = &terminal_list;
-  void *end = (char *) start + sizeof (terminal_list);
-  root_create_ambig (gc, start, end, "terminal-list");
-}
-
 static void
 root_create_tty_list (struct igc *gc)
 {
@@ -2942,6 +2934,12 @@ igc_root_create_exact_ptr (void *var_addr)
   root_create_exact_ptr (global_igc, var_addr);
 }
 
+static void
+root_create_terminal_list (struct igc *gc)
+{
+  root_create_exact_ptr (gc, &terminal_list);
+}
+
 static void
 root_create_specpdl (struct igc_thread_list *t)
 {
-- 
2.39.5