diff options
author | Lourens Naudé <lourens@bearmetal.eu> | 2019-04-22 23:24:52 +0100 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-23 16:22:34 +0900 |
commit | 90c4bd2d2bd10b19c2b09834396553742bc7e8a4 (patch) | |
tree | b28ee0776163ca2fede687cee82547a202c3e494 /iseq.c | |
parent | ab087ecb4dd21ea5f7d1cbadd8298f2f1a3c9ce9 (diff) | |
download | ruby-90c4bd2d2bd10b19c2b09834396553742bc7e8a4.tar.gz |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 = { |