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

ruby-changes:31418

From: kosaki <ko1@a...>
Date: Fri, 1 Nov 2013 06:28:06 +0900 (JST)
Subject: [ruby-changes:31418] kosaki:r43497 (trunk): * thread.c (rb_mutex_struct): reduce rb_mutex_t size by 8 bytes

kosaki	2013-11-01 06:27:40 +0900 (Fri, 01 Nov 2013)

  New Revision: 43497

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43497

  Log:
    * thread.c (rb_mutex_struct): reduce rb_mutex_t size by 8 bytes
      on 64bit platform. Patch by Eric Wong. [Feature #9068][ruby-core:58114]

  Modified files:
    trunk/ChangeLog
    trunk/thread.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43496)
+++ ChangeLog	(revision 43497)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Nov  1 06:20:44 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* thread.c (rb_mutex_struct): reduce rb_mutex_t size by 8 bytes
+	  on 64bit platform. Patch by Eric Wong. [Feature #9068][ruby-core:58114]
+
 Fri Nov  1 01:08:33 2013  Koichi Sasada  <ko1@a...>
 
 	* benchmark/gc/gcbench.rb: print HWM (high water mark) if possible.
Index: thread.c
===================================================================
--- thread.c	(revision 43496)
+++ thread.c	(revision 43497)
@@ -390,8 +390,8 @@ typedef struct rb_mutex_struct https://github.com/ruby/ruby/blob/trunk/thread.c#L390
     rb_nativethread_lock_t lock;
     rb_nativethread_cond_t cond;
     struct rb_thread_struct volatile *th;
-    int cond_waiting;
     struct rb_mutex_struct *next_mutex;
+    int cond_waiting;
     int allow_trap;
 } rb_mutex_t;
 

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

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