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 | b2f24741b567ec6dd8abb5f2bc2cb6ed2f271e01 (patch) | |
tree | 2ab44f11d701eac5dd9a3b60390d816d4f180f29 | |
parent | ff6f9c6c3b08ac9c8c26a25fe1a2ac5abd9e24ee (diff) | |
download | ruby-b2f24741b567ec6dd8abb5f2bc2cb6ed2f271e01.tar.gz ruby-b2f24741b567ec6dd8abb5f2bc2cb6ed2f271e01.tar.xz ruby-b2f24741b567ec6dd8abb5f2bc2cb6ed2f271e01.zip |
* vm_core.h (exec_event_hooks): skips RubyVM::FrozenCore.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | vm_core.h | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,6 @@ -Fri Aug 15 15:30:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> +Fri Aug 15 16:59:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * vm_core.h (exec_event_hooks): skips RubyVM::FrozenCore. * vm.c (Init_VM): get rid of SEGV in a trace proc. @@ -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); |