summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-03 09:03:06 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-03 09:03:06 +0000
commitfa105e6c203ea14deb1baf04aeb1ef2a471d1a1c (patch)
tree442747909cacfcc575e58d9e51018dd5667ce81f /gc.c
parent870dc20922d1ab0b628d24e64e971e8eb77ecd61 (diff)
* gc.c: define gc_profile_record::allocated_size if
CALC_EXACT_MALLOC_SIZE is true. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c7
1 files changed, 4 insertions, 3 deletions
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;