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

ruby-changes:25259

From: nari <ko1@a...>
Date: Wed, 24 Oct 2012 12:57:20 +0900 (JST)
Subject: [ruby-changes:25259] nari:r37311 (trunk): * gc.c (free_object_aquire): rename to match the behavior of this

nari	2012-10-24 12:55:46 +0900 (Wed, 24 Oct 2012)

  New Revision: 37311

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

  Log:
    * gc.c (free_object_aquire): rename to match the behavior of this
      function.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37310)
+++ ChangeLog	(revision 37311)
@@ -1,3 +1,8 @@
+Wed Oct 24 11:57:24 2012  Narihiro Nakamura  <authornari@g...>
+
+	* gc.c (free_object_aquire): rename to match the behavior of this
+	  function.
+
 Wed Oct 24 11:55:19 2012  Koichi Sasada  <ko1@a...>
 
 	* ext/objspace/objspace.c (reachable_object_from_i): change data
Index: gc.c
===================================================================
--- gc.c	(revision 37310)
+++ gc.c	(revision 37311)
@@ -360,7 +360,7 @@
 
 static VALUE lazy_sweep_enable(void);
 static int garbage_collect(rb_objspace_t *);
-static int gc_lazy_sweep(rb_objspace_t *);
+static int free_object_aquire(rb_objspace_t *);
 static void mark_tbl(rb_objspace_t *, st_table *);
 static void rest_sweep(rb_objspace_t *);
 static void gc_mark_stacked_objects(rb_objspace_t *);
@@ -666,7 +666,7 @@
     }
 
     if (UNLIKELY(!has_free_object)) {
-	if (!gc_lazy_sweep(objspace)) {
+	if (!free_object_aquire(objspace)) {
 	    during_gc = 0;
 	    rb_memerror();
 	}
@@ -2044,7 +2044,7 @@
 static void gc_marks(rb_objspace_t *objspace);
 
 static int
-gc_lazy_sweep(rb_objspace_t *objspace)
+free_object_aquire(rb_objspace_t *objspace)
 {
     int res;
 

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

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