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

ruby-changes:31051

From: ko1 <ko1@a...>
Date: Thu, 3 Oct 2013 18:03:13 +0900 (JST)
Subject: [ruby-changes:31051] ko1:r43130 (trunk): * gc.c: define gc_profile_record::allocated_size if

ko1	2013-10-03 18:03:06 +0900 (Thu, 03 Oct 2013)

  New Revision: 43130

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

  Log:
    * gc.c: define gc_profile_record::allocated_size if
      CALC_EXACT_MALLOC_SIZE is true.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43129)
+++ ChangeLog	(revision 43130)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct  3 18:01:44 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c: define gc_profile_record::allocated_size if 
+	  CALC_EXACT_MALLOC_SIZE is true.
+
 Thu Oct  3 13:42:51 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* common.mk (yes-test-sample): use RUNRUBY instead of MINIRUBY to set
Index: gc.c
===================================================================
--- gc.c	(revision 43129)
+++ gc.c	(revision 43130)
@@ -217,15 +217,16 @@ typedef struct gc_profile_record { https://github.com/ruby/ruby/blob/trunk/gc.c#L217
 
     size_t allocate_increase;
     size_t allocate_limit;
-#if CALC_EXACT_MALLOC_SIZE
-    size_t allocated_size;
-#endif
 
     double prepare_time;
     size_t removing_objects;
     size_t empty_objects;
 #endif
 
+#if CALC_EXACT_MALLOC_SIZE
+    size_t allocated_size;
+#endif
+
 #if RGENGC_PROFILE > 0
     size_t oldgen_objects;
     size_t remembered_normal_objects;

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

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