From 0702b5797e9b4f724b3c4f16330f62fbc9f41b8b Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 17 Apr 2017 01:23:50 +0000 Subject: vm_backtrace.c: backtrace functions per threads * vm_backtrace.c (rb_threadptr_backtrace_object): rename and extern. * vm_backtrace.c (rb_threadptr_backtrace_str_ary): rename as threadptr since the parameter is rb_thread_t*. * vm_backtrace.c (rb_threadptr_backtrace_location_ary): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index a93c6100bf..6c7bb6d1bd 100644 --- a/thread.c +++ b/thread.c @@ -4935,7 +4935,6 @@ ruby_native_thread_p(void) return th != 0; } -VALUE rb_vm_backtrace_str_ary(rb_thread_t *th, long lev, long n); static void debug_deadlock_check(rb_vm_t *vm, VALUE msg) { @@ -4968,7 +4967,7 @@ debug_deadlock_check(rb_vm_t *vm, VALUE msg) } } rb_str_catf(msg, "\n "); - rb_str_concat(msg, rb_ary_join(rb_vm_backtrace_str_ary(th, 0, 0), sep)); + rb_str_concat(msg, rb_ary_join(rb_threadptr_backtrace_str_ary(th, 0, 0), sep)); rb_str_catf(msg, "\n"); } } -- cgit v1.2.3