ruby-changes:54552
From: tenderlove <ko1@a...>
Date: Thu, 10 Jan 2019 08:04:07 +0900 (JST)
Subject: [ruby-changes:54552] tenderlove:r66767 (trunk): insns.def (duparray, duphash): add dtrace hooks
tenderlove 2019-01-10 08:04:00 +0900 (Thu, 10 Jan 2019) New Revision: 66767 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66767 Log: 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@8...> Modified files: trunk/insns.def Index: insns.def =================================================================== --- insns.def (revision 66766) +++ insns.def (revision 66767) @@ -453,6 +453,7 @@ duparray https://github.com/ruby/ruby/blob/trunk/insns.def#L453 () (VALUE val) { + RUBY_DTRACE_CREATE_HOOK(ARRAY, RARRAY_LEN(ary)); val = rb_ary_resurrect(ary); } @@ -463,6 +464,7 @@ duphash https://github.com/ruby/ruby/blob/trunk/insns.def#L464 () (VALUE val) { + RUBY_DTRACE_CREATE_HOOK(HASH, RHASH_SIZE(hash) << 1); val = rb_hash_resurrect(hash); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/