1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

use GET_VM() directly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2017-10-29 14:33:23 +00:00
parent 8702a33dd2
commit b0d79e1072

View file

@ -1074,7 +1074,7 @@ const char *ruby_fill_thread_id_string(rb_nativethread_id_t thid, rb_thread_id_s
void void
rb_vmdebug_stack_dump_all_threads(void) rb_vmdebug_stack_dump_all_threads(void)
{ {
rb_vm_t *vm = GET_THREAD()->vm; rb_vm_t *vm = GET_VM();
rb_thread_t *th = NULL; rb_thread_t *th = NULL;
list_for_each(&vm->living_threads, th, vmlt_node) { list_for_each(&vm->living_threads, th, vmlt_node) {