summaryrefslogtreecommitdiff
path: root/yarvcore.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-02 09:59:38 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-02 09:59:38 +0000
commitfba2420be4f16a74ed867098ef256c3702ffb5d4 (patch)
tree2c540cb28130f5906fc5ef7cc5d699e9d26c72f7 /yarvcore.c
parent8269ab2e1fd073f2970535ccd796213db29cd2bd (diff)
* vm.c, yarvcore.h, yarvcore.c, insns.def: fix to mark VM stack
in correct range. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'yarvcore.c')
-rw-r--r--yarvcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yarvcore.c b/yarvcore.c
index 7d6869ad5b..883ae8252d 100644
--- a/yarvcore.c
+++ b/yarvcore.c
@@ -266,7 +266,7 @@ thread_mark(void *ptr)
th = ptr;
if (th->stack) {
VALUE *p = th->stack;
- VALUE *sp = th->cfp->sp;
+ VALUE *sp = th->cfp->sp + th->mark_stack_len;
rb_control_frame_t *cfp = th->cfp;
rb_control_frame_t *limit_cfp =
(void *)(th->stack + th->stack_size);