diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-15 07:59:33 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-15 07:59:33 +0000 |
commit | 1be7c799e6ed39f7ac41906c05db149e8c391add (patch) | |
tree | 2ab44f11d701eac5dd9a3b60390d816d4f180f29 /vm_core.h | |
parent | 3f3a0fcc8e8fa2bfdf06efca7a11ddc88957d170 (diff) |
* vm_core.h (exec_event_hooks): skips RubyVM::FrozenCore.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -714,6 +714,7 @@ void rb_thread_execute_interrupts(rb_thread_t *); static inline void exec_event_hooks(rb_event_hook_t *hook, rb_event_flag_t flag, VALUE self, ID id, VALUE klass) { + if (self == rb_mRubyVMFrozenCore) return; while (hook) { if (flag & hook->flag) { (*hook->func)(flag, hook->data, self, id, klass); |