ruby-changes:42190
From: usa <ko1@a...>
Date: Fri, 25 Mar 2016 17:28:33 +0900 (JST)
Subject: [ruby-changes:42190] usa:r54264 (ruby_2_1): merge revision(s) 54000: [Backport #12148]
usa 2016-03-25 17:28:28 +0900 (Fri, 25 Mar 2016) New Revision: 54264 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54264 Log: merge revision(s) 54000: [Backport #12148] * thread_pthread.c (getstack): __pi_stacksize returned by pthread_getthrds_np() is wrong on AIX. Use __pi_stackend - __pi_stackaddr instead. Modified directories: branches/ruby_2_1/ Modified files: branches/ruby_2_1/ChangeLog branches/ruby_2_1/thread_pthread.c branches/ruby_2_1/version.h Index: ruby_2_1/thread_pthread.c =================================================================== --- ruby_2_1/thread_pthread.c (revision 54263) +++ ruby_2_1/thread_pthread.c (revision 54264) @@ -608,7 +608,10 @@ get_stack(void **addr, size_t *size) https://github.com/ruby/ruby/blob/trunk/ruby_2_1/thread_pthread.c#L608 &thinfo, sizeof(thinfo), ®, ®siz)); *addr = thinfo.__pi_stackaddr; - *size = thinfo.__pi_stacksize; + /* Must not use thinfo.__pi_stacksize for size. + It is around 3KB smaller than the correct size + calculated by thinfo.__pi_stackend - thinfo.__pi_stackaddr. */ + *size = thinfo.__pi_stackend - thinfo.__pi_stackaddr; STACK_DIR_UPPER((void)0, (void)(*addr = (char *)*addr + *size)); #else #error STACKADDR_AVAILABLE is defined but not implemented. Index: ruby_2_1/version.h =================================================================== --- ruby_2_1/version.h (revision 54263) +++ ruby_2_1/version.h (revision 54264) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/version.h#L1 #define RUBY_VERSION "2.1.9" #define RUBY_RELEASE_DATE "2016-03-25" -#define RUBY_PATCHLEVEL 461 +#define RUBY_PATCHLEVEL 462 #define RUBY_RELEASE_YEAR 2016 #define RUBY_RELEASE_MONTH 3 Index: ruby_2_1/ChangeLog =================================================================== --- ruby_2_1/ChangeLog (revision 54263) +++ ruby_2_1/ChangeLog (revision 54264) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ChangeLog#L1 +Fri Mar 25 17:28:13 2016 Rei Odaira <Rei.Odaira@g...> + + * thread_pthread.c (getstack): __pi_stacksize returned by + pthread_getthrds_np() is wrong on AIX. Use + __pi_stackend - __pi_stackaddr instead. + Fri Mar 25 17:21:51 2016 Alex Boyd <alex@o...> * lib/irb.rb: avoid to needless truncation when using back_trace_limit option. Property changes on: ruby_2_1 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r54000 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/