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

ruby-changes:23113

From: usa <ko1@a...>
Date: Thu, 29 Mar 2012 10:15:47 +0900 (JST)
Subject: [ruby-changes:23113] usa:r35163 (trunk): * thread.c (rb_threadptr_execute_interrupts_common): use defined

usa	2012-03-29 10:15:37 +0900 (Thu, 29 Mar 2012)

  New Revision: 35163

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

  Log:
    * thread.c (rb_threadptr_execute_interrupts_common): use defined
      TIME_QUANTUM_USEC instead of a magic number.  there is no meanings
      to use different values for checking interval of interruption and
      thread switching limits.
      cf. [Bug #6098]

  Modified files:
    trunk/ChangeLog
    trunk/thread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 35162)
+++ ChangeLog	(revision 35163)
@@ -1,3 +1,11 @@
+Thu Mar 29 10:12:12 2012  NAKAMURA Usaku  <usa@r...>
+
+	* thread.c (rb_threadptr_execute_interrupts_common): use defined
+	  TIME_QUANTUM_USEC instead of a magic number.  there is no meanings
+	  to use different values for checking interval of interruption and
+	  thread switching limits.
+	  cf. [Bug #6098]
+
 Thu Mar 29 09:26:17 2012  Martin Bosslet  <Martin.Bosslet@g...>
 
 	* test/openssl/test_x509cert.rb: Exclude test that fails when issuing
Index: thread.c
===================================================================
--- thread.c	(revision 35162)
+++ thread.c	(revision 35163)
@@ -1312,7 +1312,7 @@
 	}
 
 	if (timer_interrupt) {
-	    unsigned long limits_us = 250 * 1000;
+	    unsigned long limits_us = TIME_QUANTUM_USEC;
 
 	    if (th->priority > 0)
 		limits_us <<= th->priority;

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

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