[前][次][番号順一覧][スレッド一覧][生データ]

yarv-diff:294

From: ko1 atdot.net
Date: 21 Feb 2006 18:30:42 -0000
Subject: [yarv-diff:294] r458 - trunk

Author: ko1
Date: 2006-02-22 03:30:42 +0900 (Wed, 22 Feb 2006)
New Revision: 458

Modified:
   trunk/
   trunk/ChangeLog
   trunk/gc.c
   trunk/test.rb
   trunk/yarvcore.c
Log:
 r702@lermite:  ko1 | 2006-02-22 03:29:06 +0900
 	* yarvcore.c : initialize each stack of thread
 



Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - 81cd9672-7512-7e48-ae48-6936450e977d:/local/yarv/trunk:700
   + 81cd9672-7512-7e48-ae48-6936450e977d:/local/yarv/trunk:702

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-02-21 15:05:06 UTC (rev 457)
+++ trunk/ChangeLog	2006-02-21 18:30:42 UTC (rev 458)
@@ -4,6 +4,11 @@
 #  from Mon, 03 May 2004 01:24:19 +0900
 #
 
+2006-02-22(Wed) 03:25:56 +0900  Koichi Sasada  <ko1 atdot.net>
+
+	* yarvcore.c : initialize each stack of thread
+
+
 2006-02-22(Wed) 00:02:08 +0900  Koichi Sasada  <ko1 atdot.net>
 
 	* thread.c : fix synchornize return value ([yarv-dev:957])

Modified: trunk/gc.c
===================================================================
--- trunk/gc.c	2006-02-21 15:05:06 UTC (rev 457)
+++ trunk/gc.c	2006-02-21 18:30:42 UTC (rev 458)
@@ -71,8 +71,9 @@
 
 static unsigned long malloc_increase = 0;
 static unsigned long malloc_limit = GC_MALLOC_LIMIT;
+static VALUE nomem_error;
+
 static void run_final(VALUE obj);
-static VALUE nomem_error;
 static int garbage_collect(void);
 
 void

Modified: trunk/test.rb
===================================================================
--- trunk/test.rb	2006-02-21 15:05:06 UTC (rev 457)
+++ trunk/test.rb	2006-02-21 18:30:42 UTC (rev 458)
@@ -1,8 +1,8 @@
 require 'timeout'
 
-10000.times{
-  timeout(1){
-    Thread.pass
+100000.times{
+  timeout(0.1){
+    #Thread.pass
   }
 }
 __END__

Modified: trunk/yarvcore.c
===================================================================
--- trunk/yarvcore.c	2006-02-21 15:05:06 UTC (rev 457)
+++ trunk/yarvcore.c	2006-02-21 18:30:42 UTC (rev 458)
@@ -641,6 +641,8 @@
 
     /* allocate thread stack */
     th->stack = ALLOC_N(VALUE, YARV_THREAD_STACK_SIZE);
+    MEMZERO(th->stack, VALUE, YARV_THREAD_STACK_SIZE);
+    
     th->stack_size = YARV_THREAD_STACK_SIZE;
     th->cfp = (void *)(th->stack + th->stack_size);
     th->cfp--;


-- 
ML: yarv-diff quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧][生データ]