diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-14 19:23:02 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-14 19:23:02 +0000 |
commit | 5716d89d9e9ce4d1bf407fd3f9bf5928a9770956 (patch) | |
tree | abeb57da083cbf80079da15717b25cdda8a20203 /iseq.c | |
parent | 79880520a2a32b5468a01343139d52cf2d8d70d5 (diff) | |
download | ruby-5716d89d9e9ce4d1bf407fd3f9bf5928a9770956.tar.gz |
iseq.c (rb_iseq_mark): reduce NULL checks
iseq_location_setup always sets path, label and base_label fields,
and the only caller of iseq_location_setup (prepare_iseq_build) will
always pass non-nil `name' and `path' arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -108,9 +108,9 @@ rb_iseq_mark(const rb_iseq_t *iseq) const struct rb_iseq_constant_body *body = iseq->body; RUBY_MARK_UNLESS_NULL(body->mark_ary); - RUBY_MARK_UNLESS_NULL(body->location.label); - RUBY_MARK_UNLESS_NULL(body->location.base_label); - RUBY_MARK_UNLESS_NULL(body->location.path); + rb_gc_mark(body->location.label); + rb_gc_mark(body->location.base_label); + rb_gc_mark(body->location.path); RUBY_MARK_UNLESS_NULL(body->location.absolute_path); } |