1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2008-08-15 07:59:33 +00:00
parent 3f3a0fcc8e
commit 1be7c799e6
2 changed files with 4 additions and 1 deletions

View file

@ -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.

View file

@ -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);