Skip to content

Commit

Permalink
* gc.c (gc_mark_ptr): specify NOINLINE so that gc_mark() can return
Browse files Browse the repository at this point in the history
  immediately when obj is not a markable object.




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
ko1 committed Oct 29, 2015
1 parent 05b9b42 commit bce1166
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Oct 29 18:42:30 2015 Koichi Sasada <ko1@atdot.net>

* gc.c (gc_mark_ptr): specify NOINLINE so that gc_mark() can return
immediately when obj is not a markable object.

Thu Oct 29 18:05:22 2015 Koichi Sasada <ko1@atdot.net>

* encoding.c (rb_enc_check_str): add for performance.
Expand Down
2 changes: 2 additions & 0 deletions gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4250,6 +4250,8 @@ gc_aging(rb_objspace_t *objspace, VALUE obj)
objspace->marked_slots++;
}

NOINLINE(static void gc_mark_ptr(rb_objspace_t *objspace, VALUE obj));

static void
gc_mark_ptr(rb_objspace_t *objspace, VALUE obj)
{
Expand Down

0 comments on commit bce1166

Please sign in to comment.