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

ruby-changes:8755

From: matz <ko1@a...>
Date: Fri, 21 Nov 2008 20:46:32 +0900 (JST)
Subject: [ruby-changes:8755] Ruby:r20291 (trunk): * vm.c (thread_free): th->vm may be NULL when pthread_create

matz	2008-11-21 20:46:14 +0900 (Fri, 21 Nov 2008)

  New Revision: 20291

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

  Log:
    * vm.c (thread_free): th->vm may be NULL when pthread_create
      failed for ENOMEM.  [ruby-dev:37095]

  Modified files:
    trunk/ChangeLog
    trunk/vm.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20290)
+++ ChangeLog	(revision 20291)
@@ -1,3 +1,8 @@
+Fri Nov 21 16:06:54 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* vm.c (thread_free): th->vm may be NULL when pthread_create
+	  failed for ENOMEM.  [ruby-dev:37095]
+
 Thu Nov 20 07:33:15 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* lib/logger.rb (Logger): should handle the case that cvs/svn do
Index: vm.c
===================================================================
--- vm.c	(revision 20290)
+++ vm.c	(revision 20291)
@@ -1486,7 +1486,7 @@
 	}
 #endif
 
-	if (th->vm->main_thread == th) {
+	if (th->vm && th->vm->main_thread == th) {
 	    RUBY_GC_INFO("main thread\n");
 	}
 	else {

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

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