ruby-changes:14721
From: wyhaines <ko1@a...>
Date: Fri, 5 Feb 2010 07:35:21 +0900 (JST)
Subject: [ruby-changes:14721] Ruby:r26577 (ruby_1_8_6): Syntax change and dead code cleanup to help resolve some build issues on certain platforms.
wyhaines 2010-02-05 07:30:33 +0900 (Fri, 05 Feb 2010) New Revision: 26577 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26577 Log: Syntax change and dead code cleanup to help resolve some build issues on certain platforms. Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/eval.c branches/ruby_1_8_6/process.c branches/ruby_1_8_6/version.h Index: ruby_1_8_6/process.c =================================================================== --- ruby_1_8_6/process.c (revision 26576) +++ ruby_1_8_6/process.c (revision 26577) @@ -995,7 +995,6 @@ } #endif /* MSDOS or __human68k__ or __EMX__ */ before_exec(); - rb_thread_cancel_timer(); execv(prog, argv); preserving_errno(after_exec()); return -1; Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 26576) +++ ruby_1_8_6/ChangeLog (revision 26577) @@ -1,3 +1,9 @@ +Fri Feb 5 07:19:00 2010 Kirk Haines <khaines@r...> + + * eval.c: Small syntax change and dead code removal to fix build problems on some platforms. + + * process.c: Dead code removal. + Wed Feb 4 01:06:00 2010 Kirk Haines <khaines@r...> * eval.c: Backport #1743 [ruby-core:24203]; stops timer thread unless other threads exist. Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 26576) +++ ruby_1_8_6/version.h (revision 26577) @@ -1,15 +1,15 @@ #define RUBY_VERSION "1.8.6" -#define RUBY_RELEASE_DATE "2010-02-04" +#define RUBY_RELEASE_DATE "2010-02-05" #define RUBY_VERSION_CODE 186 -#define RUBY_RELEASE_CODE 20100204 -#define RUBY_PATCHLEVEL 398 +#define RUBY_RELEASE_CODE 20100205 +#define RUBY_PATCHLEVEL 399 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 #define RUBY_VERSION_TEENY 6 #define RUBY_RELEASE_YEAR 2010 #define RUBY_RELEASE_MONTH 2 -#define RUBY_RELEASE_DAY 4 +#define RUBY_RELEASE_DAY 5 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; Index: ruby_1_8_6/eval.c =================================================================== --- ruby_1_8_6/eval.c (revision 26576) +++ ruby_1_8_6/eval.c (revision 26577) @@ -11990,8 +11990,8 @@ } time_thread = {PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER}; #define safe_mutex_lock(lock) \ - (pthread_mutex_lock(lock), \ - pthread_cleanup_push((void (*)_((void *)))pthread_mutex_unlock, lock)) + pthread_mutex_lock(lock); \ + pthread_cleanup_push((void (*)_((void *)))pthread_mutex_unlock, lock) static void* thread_timer(dummy) @@ -12055,25 +12055,6 @@ thread_init = 0; } -void -rb_child_atfork() -{ - time_thread_alive_p = 0; -} - -void -rb_thread_cancel_timer() -{ -#ifdef _THREAD_SAFE - if( time_thread_alive_p ) - { - pthread_cancel( time_thread ); - pthread_join( time_thread, NULL ); - time_thread_alive_p = 0; - } - thread_init = 0; -#endif -} #elif defined(HAVE_SETITIMER) static void catch_timer(sig) @@ -12114,18 +12095,6 @@ thread_init = 0; } -void -rb_thread_cancel_timer() -{ -} - -#else /* !(_THREAD_SAFE || HAVE_SETITIMER) */ -int rb_thread_tick = THREAD_TICK; - -void -rb_thread_cancel_timer() -{ -} #endif static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/