aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias EngdegÄrd2022-04-08 15:34:57 +0200
committerMattias EngdegÄrd2022-04-08 15:34:57 +0200
commitc2d78d09c1eca4df0836d0fb41562ac0ae1071d6 (patch)
treedf15aa90d882bc016f8ed6f3e5f7d770d69ee191 /src
parent13c8cc58bbd829ca4616dea09cb050dc977db9ae (diff)
downloademacs-c2d78d09c1eca4df0836d0fb41562ac0ae1071d6.tar.gz
emacs-c2d78d09c1eca4df0836d0fb41562ac0ae1071d6.zip
Rename mark_stack to mark_c_stack
This is the function that marks the C stack. Avoid confusion with the new mark stack, a stack used in the GC mark phase. * src/alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK) (mark_stack, mark_c_stack): * src/lisp.h: * src/thread.c (mark_one_thread): Rename mark_stack to mark_c_stack.
Diffstat (limited to 'src')
-rw-r--r--src/alloc.c6
-rw-r--r--src/lisp.h2
-rw-r--r--src/thread.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 733f7733fa9..8fd981a51f9 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4982,7 +4982,7 @@ marking. Emacs has determined that the method it uses to do the\n\
4982marking will likely work on your system, but this isn't sure.\n\ 4982marking will likely work on your system, but this isn't sure.\n\
4983\n\ 4983\n\
4984If you are a system-programmer, or can get the help of a local wizard\n\ 4984If you are a system-programmer, or can get the help of a local wizard\n\
4985who is, please take a look at the function mark_stack in alloc.c, and\n\ 4985who is, please take a look at the function mark_c_stack in alloc.c, and\n\
4986verify that the methods used are appropriate for your system.\n\ 4986verify that the methods used are appropriate for your system.\n\
4987\n\ 4987\n\
4988Please mail the result to <emacs-devel@gnu.org>.\n\ 4988Please mail the result to <emacs-devel@gnu.org>.\n\
@@ -4995,7 +4995,7 @@ marking. Emacs has determined that the default method it uses to do the\n\
4995marking will not work on your system. We will need a system-dependent\n\ 4995marking will not work on your system. We will need a system-dependent\n\
4996solution for your system.\n\ 4996solution for your system.\n\
4997\n\ 4997\n\
4998Please take a look at the function mark_stack in alloc.c, and\n\ 4998Please take a look at the function mark_c_stack in alloc.c, and\n\
4999try to find a way to make it work on your system.\n\ 4999try to find a way to make it work on your system.\n\
5000\n\ 5000\n\
5001Note that you may get false negatives, depending on the compiler.\n\ 5001Note that you may get false negatives, depending on the compiler.\n\
@@ -5137,7 +5137,7 @@ typedef union
5137 from the stack start. */ 5137 from the stack start. */
5138 5138
5139void 5139void
5140mark_stack (char const *bottom, char const *end) 5140mark_c_stack (char const *bottom, char const *end)
5141{ 5141{
5142 /* This assumes that the stack is a contiguous region in memory. If 5142 /* This assumes that the stack is a contiguous region in memory. If
5143 that's not the case, something has to be done here to iterate 5143 that's not the case, something has to be done here to iterate
diff --git a/src/lisp.h b/src/lisp.h
index 9c7dc3bc6fc..f723876634a 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -4159,7 +4159,7 @@ extern void refill_memory_reserve (void);
4159#endif 4159#endif
4160extern void alloc_unexec_pre (void); 4160extern void alloc_unexec_pre (void);
4161extern void alloc_unexec_post (void); 4161extern void alloc_unexec_post (void);
4162extern void mark_stack (char const *, char const *); 4162extern void mark_c_stack (char const *, char const *);
4163extern void flush_stack_call_func1 (void (*func) (void *arg), void *arg); 4163extern void flush_stack_call_func1 (void (*func) (void *arg), void *arg);
4164extern void mark_memory (void const *start, void const *end); 4164extern void mark_memory (void const *start, void const *end);
4165 4165
diff --git a/src/thread.c b/src/thread.c
index c6742341fb8..626d14aad0a 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -655,7 +655,7 @@ mark_one_thread (struct thread_state *thread)
655 655
656 mark_specpdl (thread->m_specpdl, thread->m_specpdl_ptr); 656 mark_specpdl (thread->m_specpdl, thread->m_specpdl_ptr);
657 657
658 mark_stack (thread->m_stack_bottom, stack_top); 658 mark_c_stack (thread->m_stack_bottom, stack_top);
659 659
660 for (struct handler *handler = thread->m_handlerlist; 660 for (struct handler *handler = thread->m_handlerlist;
661 handler; handler = handler->next) 661 handler; handler = handler->next)