From 348903a628c38a4334531ac5a20e23fa44e670f3 Mon Sep 17 00:00:00 2001 From: tmm1 Date: Wed, 4 Dec 2013 04:05:15 +0000 Subject: * vm_trace.c (rb_suppress_tracing): Fix initialization of stack allocated rb_trace_arg_t structure. Without this patch, sometimes INTERNAL_EVENT_GC would be skipped accidentally inside rb_threadptr_exec_event_hooks_orig(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ vm_trace.c | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7463008ec5..14958852b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Wed Dec 4 13:02:13 2013 Aman Gupta + + * vm_trace.c (rb_suppress_tracing): Fix initialization of stack + allocated rb_trace_arg_t structure. Without this patch, sometimes + INTERNAL_EVENT_GC would be skipped accidentally inside + rb_threadptr_exec_event_hooks_orig(). + Wed Dec 4 12:57:24 2013 Aman Gupta * string.c (fstr_update_callback): Improve implementation in r43968 diff --git a/vm_trace.c b/vm_trace.c index 3a88811286..49a5fd0832 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -392,6 +392,7 @@ rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg) int state; const int tracing = th->trace_arg ? 1 : 0; rb_trace_arg_t dummy_trace_arg; + dummy_trace_arg.event = 0; if (!tracing) th->vm->trace_running++; if (!th->trace_arg) th->trace_arg = &dummy_trace_arg; -- cgit v1.2.3