mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
3dd2067349
commit
b3b786c580
2 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#define RUBY_VERSION "2.6.0"
|
||||
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
|
||||
#define RUBY_PATCHLEVEL 13
|
||||
#define RUBY_PATCHLEVEL 14
|
||||
|
||||
#define RUBY_RELEASE_YEAR 2019
|
||||
#define RUBY_RELEASE_MONTH 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue