summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorLourens Naudé <lourens@bearmetal.eu>2019-04-22 23:24:52 +0100
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-23 16:22:34 +0900
commit90c4bd2d2bd10b19c2b09834396553742bc7e8a4 (patch)
treeb28ee0776163ca2fede687cee82547a202c3e494 /iseq.c
parentab087ecb4dd21ea5f7d1cbadd8298f2f1a3c9ce9 (diff)
Let memory sizes of the various IMEMO object types be reflected correctly
[Feature #15805] Closes: https://github.com/ruby/ruby/pull/2140
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/iseq.c b/iseq.c
index fa4e72d2cd..9ee8d41275 100644
--- a/iseq.c
+++ b/iseq.c
@@ -361,8 +361,8 @@ param_keyword_size(const struct rb_iseq_param_keyword *pkw)
return size;
}
-static size_t
-iseq_memsize(const rb_iseq_t *iseq)
+size_t
+rb_iseq_memsize(const rb_iseq_t *iseq)
{
size_t size = 0; /* struct already counted as RVALUE size */
const struct rb_iseq_constant_body *body = iseq->body;
@@ -1109,7 +1109,7 @@ iseqw_mark(void *ptr)
static size_t
iseqw_memsize(const void *ptr)
{
- return iseq_memsize((const rb_iseq_t *)ptr);
+ return rb_iseq_memsize((const rb_iseq_t *)ptr);
}
static const rb_data_type_t iseqw_data_type = {