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

ruby-changes:33145

From: normal <ko1@a...>
Date: Sat, 1 Mar 2014 16:15:11 +0900 (JST)
Subject: [ruby-changes:33145] normal:r45224 (trunk): gc.c: fix build for testing w/o RGenGC

normal	2014-03-01 16:15:07 +0900 (Sat, 01 Mar 2014)

  New Revision: 45224

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

  Log:
    gc.c: fix build for testing w/o RGenGC
    
    * gc.c (ruby_gc_set_params): fix building without RGenGC

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45223)
+++ ChangeLog	(revision 45224)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Mar 1 16:05:58 2014  Eric Wong  <e@8...>
+
+	* gc.c (ruby_gc_set_params): fix building without RGenGC
+
 Sat Mar  1 11:08:00 2014  Aaron Patterson <aaron@t...>
 
 	* ext/psych/lib/psych/visitors/yaml_tree.rb: support dumping Encoding
Index: gc.c
===================================================================
--- gc.c	(revision 45223)
+++ gc.c	(revision 45224)
@@ -5827,7 +5827,7 @@ ruby_gc_set_params(int safe_level) https://github.com/ruby/ruby/blob/trunk/gc.c#L5827
     get_envparam_size  ("RUBY_GC_MALLOC_LIMIT_MAX", &gc_params.malloc_limit_max, 0);
     get_envparam_double("RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR", &gc_params.malloc_limit_growth_factor, 1.0);
 
-#ifdef RGENGC_ESTIMATE_OLDMALLOC
+#if (USE_RGENGC) && defined(RGENGC_ESTIMATE_OLDMALLOC)
     if (get_envparam_size("RUBY_GC_OLDMALLOC_LIMIT", &gc_params.oldmalloc_limit_min, 0)) {
 	rb_objspace_t *objspace = &rb_objspace;
 	objspace->rgengc.oldmalloc_increase_limit = gc_params.oldmalloc_limit_min;

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

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