mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
insns.def (duparray, duphash): add dtrace hooks
They are considered Array and Hash creation events, so allow dtrace (and systemtap) to track those creations. Co-Authored-By: Eric Wong <e@80x24.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5f17fa6c19
commit
5577a8776e
1 changed files with 2 additions and 0 deletions
|
@ -453,6 +453,7 @@ duparray
|
|||
()
|
||||
(VALUE val)
|
||||
{
|
||||
RUBY_DTRACE_CREATE_HOOK(ARRAY, RARRAY_LEN(ary));
|
||||
val = rb_ary_resurrect(ary);
|
||||
}
|
||||
|
||||
|
@ -463,6 +464,7 @@ duphash
|
|||
()
|
||||
(VALUE val)
|
||||
{
|
||||
RUBY_DTRACE_CREATE_HOOK(HASH, RHASH_SIZE(hash) << 1);
|
||||
val = rb_hash_resurrect(hash);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue