From 5ff36b57be5cdc599f5d4ea3524a65ca4d65433d Mon Sep 17 00:00:00 2001 From: nahi Date: Wed, 19 Mar 2003 14:15:07 +0000 Subject: [PATCH] * lib/tracer.rb (trace_func): save and recover Thread.critical state. Fixed by Fukumoto Atsushi [ruby-dev:19830] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 9 +++++++-- lib/tracer.rb | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ba159fc1c2..6d57f74373 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,12 @@ +Wed Mar 19 23:05:30 2003 NAKAMURA, Hiroshi + + * lib/tracer.rb (trace_func): save and recover Thread.critical state. + Fixed by Fukumoto Atsushi [ruby-dev:19830] + Sun Mar 16 12:29:55 2003 Tanaka Akira - * lib/pp.rb (object_address_group): use to_s instead of name - to get name of class. + * lib/pp.rb (object_address_group): use to_s instead of name + to get name of class. Wed Mar 12 16:48:19 2003 WATANABE Hirofumi diff --git a/lib/tracer.rb b/lib/tracer.rb index f522a9178d..3ccf1b5017 100644 --- a/lib/tracer.rb +++ b/lib/tracer.rb @@ -119,6 +119,7 @@ class Tracer return unless p.call event, file, line, id, binding, klass end + saved_crit = Thread.critical Thread.critical = true stdout.printf("#%d:%s:%d:%s:%s: %s", get_thread_no, @@ -127,7 +128,7 @@ class Tracer klass || '', EVENT_SYMBOL[event], get_line(file, line)) - Thread.critical = false + Thread.critical = saved_crit end Single = new