зеркало из https://github.com/github/ruby.git
* lib/tracer.rb (trace_func): save and recover Thread.critical state.
Fixed by Fukumoto Atsushi <fukumoto@imasy.or.jp> [ruby-dev:19830] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b6c5aa09a8
Коммит
5ff36b57be
|
@ -1,7 +1,12 @@
|
||||||
|
Wed Mar 19 23:05:30 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/tracer.rb (trace_func): save and recover Thread.critical state.
|
||||||
|
Fixed by Fukumoto Atsushi <fukumoto@imasy.or.jp> [ruby-dev:19830]
|
||||||
|
|
||||||
Sun Mar 16 12:29:55 2003 Tanaka Akira <akr@m17n.org>
|
Sun Mar 16 12:29:55 2003 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* lib/pp.rb (object_address_group): use to_s instead of name
|
* lib/pp.rb (object_address_group): use to_s instead of name
|
||||||
to get name of class.
|
to get name of class.
|
||||||
|
|
||||||
Wed Mar 12 16:48:19 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
Wed Mar 12 16:48:19 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
|
|
@ -119,6 +119,7 @@ class Tracer
|
||||||
return unless p.call event, file, line, id, binding, klass
|
return unless p.call event, file, line, id, binding, klass
|
||||||
end
|
end
|
||||||
|
|
||||||
|
saved_crit = Thread.critical
|
||||||
Thread.critical = true
|
Thread.critical = true
|
||||||
stdout.printf("#%d:%s:%d:%s:%s: %s",
|
stdout.printf("#%d:%s:%d:%s:%s: %s",
|
||||||
get_thread_no,
|
get_thread_no,
|
||||||
|
@ -127,7 +128,7 @@ class Tracer
|
||||||
klass || '',
|
klass || '',
|
||||||
EVENT_SYMBOL[event],
|
EVENT_SYMBOL[event],
|
||||||
get_line(file, line))
|
get_line(file, line))
|
||||||
Thread.critical = false
|
Thread.critical = saved_crit
|
||||||
end
|
end
|
||||||
|
|
||||||
Single = new
|
Single = new
|
||||||
|
|
Загрузка…
Ссылка в новой задаче