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

ruby-changes:30992

From: ko1 <ko1@a...>
Date: Fri, 27 Sep 2013 17:45:51 +0900 (JST)
Subject: [ruby-changes:30992] ko1:r43071 (trunk): * gc.c (GC_MALLOC_LIMIT): 8, 000, 000 -> 8 * 1, 024 * 1, 024.

ko1	2013-09-27 17:45:45 +0900 (Fri, 27 Sep 2013)

  New Revision: 43071

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

  Log:
    * gc.c (GC_MALLOC_LIMIT): 8,000,000 -> 8 * 1,024 * 1,024.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43070)
+++ ChangeLog	(revision 43071)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Sep 27 17:44:41 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c (GC_MALLOC_LIMIT): 8,000,000 -> 8 * 1,024 * 1,024.
+
 Fri Sep 27 17:19:39 2013  Koichi Sasada  <ko1@a...>
 
 	* gc.c (gc_before_sweep): cast to size_t to suppress warnings.
Index: gc.c
===================================================================
--- gc.c	(revision 43070)
+++ gc.c	(revision 43071)
@@ -87,7 +87,7 @@ rb_gc_guarded_ptr(volatile VALUE *ptr) https://github.com/ruby/ruby/blob/trunk/gc.c#L87
 #define GC_HEAP_GROWTH_FACTOR 1.8
 #endif
 #ifndef GC_MALLOC_LIMIT
-#define GC_MALLOC_LIMIT 8000000
+#define GC_MALLOC_LIMIT (8 /* 8 MB */ * 1024 * 1024 /* 1MB */)
 #endif
 #ifndef GC_MALLOC_LIMIT_MAX
 #define GC_MALLOC_LIMIT_MAX (256 /* 256 MB */ * 1024 * 1024 /* 1MB */)

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

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