From df91d39c943333ea39be83cdcc0efb5ee1fb943d Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 10 Jul 2008 15:58:07 +0000 Subject: [PATCH] * thread.c (thread_create_core): fix GC problem. [ruby-core:17669] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ thread.c | 4 ++-- version.h | 6 +++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 86bd9eac26..9b45eaf68b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 11 00:56:46 2008 Koichi Sasada + + * thread.c (thread_create_core): fix GC problem. + [ruby-core:17669] + Thu Jul 10 22:06:00 2008 Nobuyoshi Nakada * lib/pstore.rb (PStore#transaction): return the result from the diff --git a/thread.c b/thread.c index 65c1706f8b..2f768b2cab 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; diff --git a/version.h b/version.h index e80e5c7963..0bfc696ca0 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2008-07-10" +#define RUBY_RELEASE_DATE "2008-07-11" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20080710 +#define RUBY_RELEASE_CODE 20080711 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2008 #define RUBY_RELEASE_MONTH 7 -#define RUBY_RELEASE_DAY 10 +#define RUBY_RELEASE_DAY 11 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[];