diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-29 06:17:07 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-29 06:17:07 +0000 |
commit | 576ff7de7bcaef787b8a3b8fb55c7b4192841f22 (patch) | |
tree | 76e2630b799255eedb4eee7f27e2795a46f54d05 /include | |
parent | bd491dc81523f508715f561ea13c18225ea93f85 (diff) | |
download | ruby-576ff7de7bcaef787b8a3b8fb55c7b4192841f22.tar.gz |
* gc.c: add rb_objspace::flags::has_hook to represent hook availability.
* gc.c: add gc_event_hook_available_p(objspace) to check that flag.
* gc.c (newobj_of): use gc_event_hook_available_p() instead of
checking gc_event_hook_needed_p(objspace, RUBY_INTERNAL_EVENT_NEWOBJ).
for performance.
* gc.c (newobj_init): add UNLIKELY() for FL_WB_PROTECTED flag.
* gc.c (newobj_init): change parameters order (trivial change).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions