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

ruby-changes:5911

From: shyouhei <ko1@a...>
Date: Wed, 18 Jun 2008 23:13:49 +0900 (JST)
Subject: [ruby-changes:5911] Ruby:r17419 (trunk): * gc.c (rb_newobj): prohibit call of rb_newobj() during gc.

shyouhei	2008-06-18 23:09:33 +0900 (Wed, 18 Jun 2008)

  New Revision: 17419

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

  Log:
    * gc.c (rb_newobj): prohibit call of rb_newobj() during gc.
      a patch from Sylvain Joyeux in [ruby-core:12099].
    


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17419&r2=17418&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/gc.c?r1=17419&r2=17418&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 17418)
+++ ChangeLog	(revision 17419)
@@ -1,3 +1,8 @@
+Wed Jun 18 23:07:19 2008  URABE Shyouhei  <shyouhei@r...>
+
+	* gc.c (rb_newobj): prohibit call of rb_newobj() during gc.
+	  a patch from Sylvain Joyeux in [ruby-core:12099].
+
 Wed Jun 18 21:08:14 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* ruby.c (verbose_setter, opt_W_getter): fixed prototypes.
Index: gc.c
===================================================================
--- gc.c	(revision 17418)
+++ gc.c	(revision 17419)
@@ -714,6 +714,9 @@
     rb_objspace_t *objspace = &rb_objspace;
 #endif
 
+    if (during_gc)
+        rb_bug("object allocation during garbage collection phase");
+
     if (v) {
 	RBASIC(v)->flags = 0;
 	th->value_cache_ptr++;

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

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