diff options
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c index 34fddcc01c..83026d8f33 100644 --- a/vm_method.c +++ b/vm_method.c @@ -23,6 +23,19 @@ static struct cache_entry cache[CACHE_SIZE]; #define ruby_running (GET_VM()->running) /* int ruby_running = 0; */ +static void +vm_clear_global_method_cache(void) +{ + struct cache_entry *ent, *end; + + ent = cache; + end = ent + CACHE_SIZE; + while (ent < end) { + ent->filled_version = 0; + ent++; + } +} + void rb_clear_cache(void) { |