[前][次][番号順一覧][スレッド一覧]

ruby-changes:5345

From: mame <ko1@a...>
Date: Thu, 5 Jun 2008 23:27:31 +0900 (JST)
Subject: [ruby-changes:5345] Ruby:r16846 (trunk): * eval.c (ruby_finalize_0): clear trace_func after executing END

mame	2008-06-05 23:27:09 +0900 (Thu, 05 Jun 2008)

  New Revision: 16846

  Modified files:
    trunk/ChangeLog
    trunk/eval.c
    trunk/thread.c

  Log:
    * eval.c (ruby_finalize_0): clear trace_func after executing END
      procs.
    
    * thread.c: fix typo.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16846&r2=16845&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/thread.c?r1=16846&r2=16845&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/eval.c?r1=16846&r2=16845&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 16845)
+++ ChangeLog	(revision 16846)
@@ -1,3 +1,10 @@
+Thu Jun  5 23:25:34 2008  Yusuke Endoh  <mame@t...>
+
+	* eval.c (ruby_finalize_0): clear trace_func after executing END
+	  procs.
+
+	* thread.c: fix typo.
+
 Thu Jun  5 22:50:50 2008  Tanaka Akira  <akr@f...>
 
 	* gc.c (os_obj_of): heaps may be modified in yield.
Index: thread.c
===================================================================
--- thread.c	(revision 16845)
+++ thread.c	(revision 16846)
@@ -2817,7 +2817,7 @@
 /* tracer */
 
 static rb_event_hook_t *
-alloc_event_fook(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data)
+alloc_event_hook(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data)
 {
     rb_event_hook_t *hook = ALLOC(rb_event_hook_t);
     hook->func = func;
@@ -2842,7 +2842,7 @@
 rb_thread_add_event_hook(rb_thread_t *th,
 			 rb_event_hook_func_t func, rb_event_flag_t events, VALUE data)
 {
-    rb_event_hook_t *hook = alloc_event_fook(func, events, data);
+    rb_event_hook_t *hook = alloc_event_hook(func, events, data);
     hook->next = th->event_hooks;
     th->event_hooks = hook;
     thread_reset_event_flags(th);
@@ -2873,7 +2873,7 @@
 void
 rb_add_event_hook(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data)
 {
-    rb_event_hook_t *hook = alloc_event_fook(func, events, data);
+    rb_event_hook_t *hook = alloc_event_hook(func, events, data);
     rb_vm_t *vm = GET_VM();
 
     hook->next = vm->event_hooks;
Index: eval.c
===================================================================
--- eval.c	(revision 16845)
+++ eval.c	(revision 16846)
@@ -115,13 +115,13 @@
 static void
 ruby_finalize_0(void)
 {
-    rb_clear_trace_func();
     PUSH_TAG();
     if (EXEC_TAG() == 0) {
 	rb_trap_exit();
     }
     POP_TAG();
     rb_exec_end_proc();
+    rb_clear_trace_func();
 }
 
 static void

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]