summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-15 09:06:51 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-15 09:06:51 (GMT)
commitb3b786c580995b31dcc0259890cefdb1385998c6 (patch)
treeb82de67ce779080872763553249b2e0f048f50c5 /insns.def
parent3dd206734981b74f14dc1fe61363c5e7313b92d9 (diff)
merge revision(s) 66767: [Backport #15399]
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/branches/ruby_2_6@66829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/insns.def b/insns.def
index 983a20f..6c62f99 100644
--- a/insns.def
+++ b/insns.def
@@ -451,6 +451,7 @@ duparray
()
(VALUE val)
{
+ RUBY_DTRACE_CREATE_HOOK(ARRAY, RARRAY_LEN(ary));
val = rb_ary_resurrect(ary);
}
@@ -461,6 +462,7 @@ duphash
()
(VALUE val)
{
+ RUBY_DTRACE_CREATE_HOOK(HASH, RHASH_SIZE(hash) << 1);
val = rb_hash_resurrect(hash);
}