aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--iseq.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c8011e0c88..d155305d9c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Nov 3 13:49:18 2014 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (iseq_memsize): catch up recent changes.
+
Mon Nov 3 13:38:28 2014 Koichi Sasada <ko1@atdot.net>
* vm_core.h: change semantics of opt_num and opt_table.
diff --git a/iseq.c b/iseq.c
index 873161cca7..561d85be5a 100644
--- a/iseq.c
+++ b/iseq.c
@@ -144,6 +144,10 @@ iseq_memsize(const void *ptr)
size += iseq_catch_table_bytes(iseq->catch_table->size);
}
size += (iseq->param.opt_num + 1) * sizeof(VALUE);
+ if (iseq->param.keyword != NULL) {
+ size += sizeof(struct rb_iseq_param_keyword);
+ size += sizeof(VALUE) * (iseq->param.keyword->num - iseq->param.keyword->required_num);
+ }
size += iseq->is_size * sizeof(union iseq_inline_storage_entry);
size += iseq->callinfo_size * sizeof(rb_call_info_t);