summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 01:02:29 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-31 01:02:29 (GMT)
commit9d64a542094efdbcf8fc8b192750d6b0343665c3 (patch)
tree79011dd5107df17b3f7e2c8533a5ed965906c139 /vm_method.c
parent1546ffed499aa40e905485b00293fbb530d7ebd1 (diff)
internal.h: RUBY_DTRACE_HOOK
* internal.h (RUBY_DTRACE_HOOK): extract from RUBY_DTRACE_CREATE_HOOK for other type hooks. * gc.c (RUBY_DTRACE_GC_HOOK): ditto. * parse.y (RUBY_DTRACE_PARSE_HOOK): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm_method.c b/vm_method.c
index 1e57176..7d658b0 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -85,9 +85,7 @@ rb_clear_method_cache_by_class(VALUE klass)
if (klass && klass != Qundef) {
int global = klass == rb_cBasicObject || klass == rb_cObject || klass == rb_mKernel;
- if (RUBY_DTRACE_METHOD_CACHE_CLEAR_ENABLED()) {
- RUBY_DTRACE_METHOD_CACHE_CLEAR(global ? "global" : rb_class2name(klass), rb_sourcefile(), rb_sourceline());
- }
+ RUBY_DTRACE_HOOK(METHOD_CACHE_CLEAR, (global ? "global" : rb_class2name(klass)));
if (global) {
INC_GLOBAL_METHOD_STATE();