From bc07265ceb9ca1c2d9329e614240b6ada4ff2b5c Mon Sep 17 00:00:00 2001 From: ktsj Date: Sat, 1 Oct 2011 23:48:48 +0000 Subject: * vm.c (rb_thread_mark), cont.c (cont_mark): self pointer should not be marked by itself. Patch by Koichi Sasada. [ruby-dev:44567] [Bug #5386] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- cont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cont.c') diff --git a/cont.c b/cont.c index 3e68d897ca..bbcf2e184c 100644 --- a/cont.c +++ b/cont.c @@ -138,7 +138,7 @@ cont_mark(void *ptr) if (ptr) { rb_context_t *cont = ptr; rb_gc_mark(cont->value); - rb_thread_mark(&cont->saved_thread); + rb_gc_mark(cont->saved_thread.self); if (cont->vm_stack) { #ifdef CAPTURE_JUST_VALID_VM_STACK -- cgit v1.2.3