diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c index c5b33caa58..51724bc248 100644 --- a/vm_method.c +++ b/vm_method.c @@ -497,6 +497,7 @@ rb_method_entry_t * rb_method_entry_get_with_omod(VALUE omod, VALUE klass, ID id, VALUE *defined_class_ptr) { +#if OPT_GLOBAL_METHOD_CACHE struct cache_entry *ent; ent = cache + EXPR1(klass, omod, id); @@ -506,6 +507,7 @@ rb_method_entry_get_with_omod(VALUE omod, VALUE klass, ID id, *defined_class_ptr = ent->defined_class; return ent->me; } +#endif return rb_method_entry_get_without_cache(klass, omod, id, defined_class_ptr); |