wingo pushed a commit to branch wip-whippet
in repository guile.

commit 4ebf7d349858e302debaa1aa276c9890603490e1
Author: Andy Wingo <wi...@pobox.com>
AuthorDate: Tue Jul 1 16:17:52 2025 +0200

    Remove dead code in threads.c
    
    * libguile/threads.c (scm_trace_thread): Remove.
---
 libguile/threads.c | 28 ----------------------------
 1 file changed, 28 deletions(-)

diff --git a/libguile/threads.c b/libguile/threads.c
index c54c90e83..45e016625 100644
--- a/libguile/threads.c
+++ b/libguile/threads.c
@@ -81,34 +81,6 @@
 
 
 
-#if 0
-/* FIXME: For the moment, the bodies of thread objects are traced
-   conservatively; only bdw, heap-conservative-mmc, and
-   heap-conservative-parallel-mmc are supported.  */
-void
-scm_trace_thread (struct scm_thread *thread,
-                  void (*trace_edge) (struct gc_edge edge,
-                                      struct gc_heap *heap,
-                                      void *trace_data),
-                  struct gc_heap *heap, void *trace_data)
-{
-  trace_edge (gc_edge (&thread->next_thread), heap, trace_data);
-
-  trace_edge (gc_edge (&thread->pending_asyncs), heap, trace_data);
-
-  /* FIXME: Use scm_trace_dynamic_state or so.  */
-  // trace_edge (gc_edge (&thread->dynamic_state), heap, trace_data);
-
-  scm_trace_dynstack (&thread->dynstack, trace_edge, heap, trace_data);
-
-  trace_edge (gc_edge (&thread->continuation_root), heap, trace_data);
-
-  trace_edge (gc_edge (&thread->join_cond), heap, trace_data);
-  trace_edge (gc_edge (&thread->join_lock), heap, trace_data);
-  trace_edge (gc_edge (&thread->join_results), heap, trace_data);
-}
-#endif
-
 /* Guile-level thread objects are themselves GC-allocated.  A thread
    object has two states: active and finished.  A thread is active if it
    is attached to the gc_mutator_roots of a mutator.  The thread has an

Reply via email to