aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--gc.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7c55603909..c954ceb4c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 3 18:01:44 2013 Koichi Sasada <ko1@atdot.net>
+
+ * 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@ruby-lang.org>
* common.mk (yes-test-sample): use RUNRUBY instead of MINIRUBY to set
diff --git a/gc.c b/gc.c
index 99907a3523..26d02acdeb 100644
--- a/gc.c
+++ b/gc.c
@@ -217,15 +217,16 @@ typedef struct gc_profile_record {
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;