ruby-changes:36167
From: ko1 <ko1@a...>
Date: Mon, 3 Nov 2014 13:54:32 +0900 (JST)
Subject: [ruby-changes:36167] ko1:r48248 (trunk): * iseq.c (iseq_memsize): catch up recent changes.
ko1 2014-11-03 13:54:27 +0900 (Mon, 03 Nov 2014) New Revision: 48248 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48248 Log: * iseq.c (iseq_memsize): catch up recent changes. Modified files: trunk/ChangeLog trunk/iseq.c Index: ChangeLog =================================================================== --- ChangeLog (revision 48247) +++ ChangeLog (revision 48248) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Nov 3 13:49:18 2014 Koichi Sasada <ko1@a...> + + * iseq.c (iseq_memsize): catch up recent changes. + Mon Nov 3 13:38:28 2014 Koichi Sasada <ko1@a...> * vm_core.h: change semantics of opt_num and opt_table. Index: iseq.c =================================================================== --- iseq.c (revision 48247) +++ iseq.c (revision 48248) @@ -144,6 +144,10 @@ iseq_memsize(const void *ptr) https://github.com/ruby/ruby/blob/trunk/iseq.c#L144 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/