diff options
author | John Hawthorn <[email protected]> | 2023-09-03 17:02:57 -0700 |
---|---|---|
committer | John Hawthorn <[email protected]> | 2023-09-07 13:51:56 -0700 |
commit | 094f336a274ce83bc9868c7f9be0962b54ec46a7 (patch) | |
tree | 7d4291dc8d9fa0836a7f3c076aa671e054857e89 /regparse.h | |
parent | aed52151043561dbe9657abd07f1abfcd97df817 (diff) |
GC: Only force alloc slowpath for NEWOBJ hook
Previously, configuring any GC event hook would cause all allocations to
go through the newobj slowpath. We should only need to do that when the
newobj specifically is subscribed to.
This renames flags.has_hook to flags.has_newobj_hook, to make this new
usage clear. newobj_of0 was the only place which previously checked this
flag.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8378
Diffstat (limited to 'regparse.h')
0 files changed, 0 insertions, 0 deletions