Actions
Bug #16658
closed`method__cache__clear` DTrace hook was dropped without replacement
Description
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0
Added by vo.x (Vit Ondruch) almost 5 years ago. Updated about 4 years ago.
Description
@Koichi could you please take a look, since your commit removed the hook. Thx
Sorry. what method__cache__clear
did?
When this hook was invoked?
ko1 (Koichi Sasada) wrote in #note-3:
Sorry. what
method__cache__clear
did?
I don't really know. @tenderlovemaking (Aaron Patterson) is the author AFAIK. But this is the comment from probes.d:
ruby:::method-cache-clear(class, filename, lineno);
This probe is fired when the method cache is cleared.
* `class` the name of the class or "global" (a string)
* `filename` the file name where the cache is _being cleared_ (a string)
* `lineno` the line number where the cache is _being cleared_ (an int)
When this hook was invoked?
https://github.com/ruby/ruby/pull/2888/files#diff-6cea7716df08f2b7fdc5fb30c7963884L98
When this hook was invoked?
https://github.com/ruby/ruby/pull/2888/files#diff-6cea7716df08f2b7fdc5fb30c7963884L98
Hm, this does not appear to really work, since the vm_method.c is collapsed. Anyway, this used to be the invocation place:
https://github.com/ruby/ruby/blob/f2286925f08406bc857f7b03ad6779a5d61443ae/vm_method.c#L98
Thanks, I think there is no chance to invoke this hook on current master.
ko1 (Koichi Sasada) wrote in #note-6:
Thanks, I think there is no chance to invoke this hook on current master.
Could you please adjust the probes.d then? Thx.
Could this be fixed prior Ruby 3.0 release please?
Applied in changeset git|b32ed8aa41795e3b153b423ae14d2699060d73db.
remove method__cache__clear
DTrace probe method__cache__clear is no longer used.
[Bug #16658]
Thank you for the reminder!