From 3f05ee0f42a88ed4d1a77c10807f367af681f933 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 9 Apr 2014 14:32:01 +0000 Subject: [PATCH] Add comment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gc.c b/gc.c index d8e55cde3e..49a08f928a 100644 --- a/gc.c +++ b/gc.c @@ -3507,6 +3507,9 @@ mark_current_machine_context(rb_objspace_t *objspace, rb_thread_t *th) /* This assumes that all registers are saved into the jmp_buf (and stack) */ rb_setjmp(save_regs_gc_mark.j); + /* SET_STACK_END must be called in this function because + * the stack frame of this function may contain + * callee save registers and they should be marked. */ SET_STACK_END; GET_STACK_BOUNDS(stack_start, stack_end, 1);