[前][次][番号順一覧][スレッド一覧]

ruby-changes:42249

From: nagachika <ko1@a...>
Date: Tue, 29 Mar 2016 00:41:00 +0900 (JST)
Subject: [ruby-changes:42249] nagachika:r54323 (ruby_2_2): merge revision(s) 54000: [Backport #12148]

nagachika	2016-03-29 00:40:56 +0900 (Tue, 29 Mar 2016)

  New Revision: 54323

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54323

  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_2/
  Modified files:
    branches/ruby_2_2/ChangeLog
    branches/ruby_2_2/thread_pthread.c
    branches/ruby_2_2/version.h
Index: ruby_2_2/thread_pthread.c
===================================================================
--- ruby_2_2/thread_pthread.c	(revision 54322)
+++ ruby_2_2/thread_pthread.c	(revision 54323)
@@ -613,7 +613,10 @@ get_stack(void **addr, size_t *size) https://github.com/ruby/ruby/blob/trunk/ruby_2_2/thread_pthread.c#L613
 				   &thinfo, sizeof(thinfo),
 				   &reg, &regsiz));
     *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_2/version.h
===================================================================
--- ruby_2_2/version.h	(revision 54322)
+++ ruby_2_2/version.h	(revision 54323)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/version.h#L1
 #define RUBY_VERSION "2.2.5"
 #define RUBY_RELEASE_DATE "2016-03-29"
-#define RUBY_PATCHLEVEL 265
+#define RUBY_PATCHLEVEL 266
 
 #define RUBY_RELEASE_YEAR 2016
 #define RUBY_RELEASE_MONTH 3
Index: ruby_2_2/ChangeLog
===================================================================
--- ruby_2_2/ChangeLog	(revision 54322)
+++ ruby_2_2/ChangeLog	(revision 54323)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ChangeLog#L1
+Tue Mar 29 00:33:06 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.
+
 Tue Mar 29 00:06:58 2016  Alex Boyd  <alex@o...>
 
 	* lib/irb.rb: avoid to needless truncation when using back_trace_limit option.

Property changes on: ruby_2_2
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r54000


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]