From d2bd498efcb41d810599fdb44dcfb62dadec4c85 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 10 Jul 2008 15:58:07 +0000 Subject: * thread.c (thread_create_core): fix GC problem. [ruby-core:17669] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 65c1706f8..2f768b2ca 100644 --- a/thread.c +++ b/thread.c @@ -440,9 +440,9 @@ thread_create_core(VALUE thval, VALUE args, VALUE (*fn)(ANYARGS)) GetThreadPtr(thval, th); /* setup thread environment */ - th->first_args = args; - th->first_proc = fn ? Qfalse : rb_block_proc(); th->first_func = fn; + th->first_proc = fn ? Qfalse : rb_block_proc(); + th->first_args = args; /* GC: shouldn't put before above line */ th->priority = GET_THREAD()->priority; th->thgroup = GET_THREAD()->thgroup; -- cgit