ruby-changes:10645
From: shyouhei <ko1@a...>
Date: Tue, 10 Feb 2009 20:01:20 +0900 (JST)
Subject: [ruby-changes:10645] Ruby:r22203 (ruby_1_8_6): merge revision(s) 20225:
shyouhei 2009-02-10 20:00:25 +0900 (Tue, 10 Feb 2009) New Revision: 22203 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22203 Log: merge revision(s) 20225: * eval.c (load_lock): makes circular require deadlock. [ruby-core:19821] Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/eval.c branches/ruby_1_8_6/version.h Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 22202) +++ ruby_1_8_6/ChangeLog (revision 22203) @@ -1,3 +1,8 @@ +Tue Feb 10 19:57:43 2009 Nobuyoshi Nakada <nobu@r...> + + * eval.c (load_lock): makes circular require deadlock. + [ruby-core:19821] + Tue Feb 10 19:13:08 2009 Nobuyoshi Nakada <nobu@r...> * eval.c (rb_feature_p): returns found feature name if loading. Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 22202) +++ ruby_1_8_6/version.h (revision 22203) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2009-02-10" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20090210 -#define RUBY_PATCHLEVEL 326 +#define RUBY_PATCHLEVEL 327 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 Index: ruby_1_8_6/eval.c =================================================================== --- ruby_1_8_6/eval.c (revision 22202) +++ ruby_1_8_6/eval.c (revision 22203) @@ -1441,6 +1441,8 @@ int ruby_in_eval; +static int rb_thread_join _((rb_thread_t, double)); + static void rb_thread_cleanup _((void)); static void rb_thread_wait_other_threads _((void)); @@ -7121,8 +7123,9 @@ return (char *)ftptr; } do { - if ((rb_thread_t)th == curr_thread) return 0; - CHECK_INTS; + rb_thread_t owner = (rb_thread_t)th; + if (owner == curr_thread) return 0; + rb_thread_join(owner->thread, -1.0); } while (st_lookup(loading_tbl, (st_data_t)ftptr, &th)); return 0; } @@ -11103,8 +11106,6 @@ return curr_thread->select_value; } -static int rb_thread_join _((rb_thread_t, double)); - static int rb_thread_join(th, limit) rb_thread_t th; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/