From: v.ondruch@... Date: 2020-05-07T18:51:58+00:00 Subject: [ruby-core:98198] [Ruby master Bug#16658] `method__cache__clear` DTrace hook was dropped without replacement Issue #16658 has been updated by vo.x (Vit Ondruch). ko1 (Koichi Sasada) wrote in #note-3: > Sorry. what `method__cache__clear` did? I don't really know. @tenderlovemaking 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 ---------------------------------------- Bug #16658: `method__cache__clear` DTrace hook was dropped without replacement https://bugs.ruby-lang.org/issues/16658#change-85435 * Author: vo.x (Vit Ondruch) * Status: Open * Priority: Normal * Assignee: ko1 (Koichi Sasada) * ruby -v: ruby 2.8.0dev (2020-02-26 master 83705c42ce) [x86_64-linux] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- The PR #2888 [1] dropped DTrace `method__cache__clear` hook without replacement. Was this intentional? If yes, then the probes.d [3] should be updated appropriately. If this was not intentional, the hook should be reintroduced. [1]: https://github.com/ruby/ruby/pull/2888 [2]: https://github.com/ruby/ruby/commit/b9007b6c548f91#diff-6cea7716df08f2b7fdc5fb30c7963884L98 [3]: https://github.com/ruby/ruby/blob/master/probes.d#L227 -- https://bugs.ruby-lang.org/ Unsubscribe: