mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_trace.c: uninitialized state
* vm_trace.c (rb_threadptr_exec_event_hooks): fix uninitialized state when no events is excuted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
667a6a8516
commit
4faf219853
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Aug 31 14:02:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* vm_trace.c (rb_threadptr_exec_event_hooks): fix uninitialized state
|
||||||
|
when no events is excuted.
|
||||||
|
|
||||||
Thu Aug 30 18:21:51 2012 Tanaka Akira <akr@fsij.org>
|
Thu Aug 30 18:21:51 2012 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* io.c (rb_io_close): call rb_last_status_clear.
|
* io.c (rb_io_close): call rb_last_status_clear.
|
||||||
|
|
|
@ -320,7 +320,7 @@ rb_threadptr_exec_event_hooks(rb_thread_t *th, rb_event_flag_t event, VALUE self
|
||||||
{
|
{
|
||||||
if (th->trace_running == 0 &&
|
if (th->trace_running == 0 &&
|
||||||
self != rb_mRubyVMFrozenCore /* skip special methods. TODO: remove it. */) {
|
self != rb_mRubyVMFrozenCore /* skip special methods. TODO: remove it. */) {
|
||||||
int state;
|
int state = 0;
|
||||||
int outer_state = th->state;
|
int outer_state = th->state;
|
||||||
th->state = 0;
|
th->state = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue