summaryrefslogtreecommitdiff
path: root/darwin_stop_world.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2021-06-13 11:05:58 +0300
committerIvan Maidanski <ivmai@mail.ru>2021-06-13 11:05:58 +0300
commit00c4604368bbe27982b96b56b0b0a8aa25f3b225 (patch)
tree6e39e9ebc25fd94affbdbd8f5f47c16797fd4920 /darwin_stop_world.c
parent5077b8daac5c96906a496be5565e96c229733e80 (diff)
downloadbdwgc-00c4604368bbe27982b96b56b0b0a8aa25f3b225.tar.gz
Add comment to stack_range_for that particular regs are skipped (Darwin)
* darwin_stop_world.c [X86_64 || POWERPC] (GC_stack_range_for): Add comment that rsp and r1 registers are skipped.
Diffstat (limited to 'darwin_stop_world.c')
-rw-r--r--darwin_stop_world.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/darwin_stop_world.c b/darwin_stop_world.c
index 89161bd3..c4caf62c 100644
--- a/darwin_stop_world.c
+++ b/darwin_stop_world.c
@@ -235,7 +235,7 @@ STATIC ptr_t GC_stack_range_for(ptr_t *phi, thread_act_t thread, GC_thread p,
GC_push_one(state.THREAD_FLD(rdi));
GC_push_one(state.THREAD_FLD(rsi));
GC_push_one(state.THREAD_FLD(rbp));
- /* GC_push_one(state.THREAD_FLD(rsp)); */
+ /* rsp is skipped. */
GC_push_one(state.THREAD_FLD(r8));
GC_push_one(state.THREAD_FLD(r9));
GC_push_one(state.THREAD_FLD(r10));
@@ -251,6 +251,7 @@ STATIC ptr_t GC_stack_range_for(ptr_t *phi, thread_act_t thread, GC_thread p,
*phi = GC_FindTopOfStack(state.THREAD_FLD(r1));
# endif
GC_push_one(state.THREAD_FLD(r0));
+ /* r1 is skipped. */
GC_push_one(state.THREAD_FLD(r2));
GC_push_one(state.THREAD_FLD(r3));
GC_push_one(state.THREAD_FLD(r4));