summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 93163098e2..809da4e86f 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -975,7 +975,7 @@ rb_vm_living_threads_init(rb_vm_t *vm)
static inline void
rb_vm_living_threads_insert(rb_vm_t *vm, rb_thread_t *th)
{
- list_add(&vm->living_threads, &th->vmlt_node);
+ list_add_tail(&vm->living_threads, &th->vmlt_node);
vm->living_thread_num++;
}