summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-31 04:27:02 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-31 04:27:02 +0000
commit488561c65522ea1c05c0ab5082d0f6442f1cf8c6 (patch)
tree6cd872032135d98fb164e9a8b78cba7c6a822d61 /vm_core.h
parentee485d5d511794b3579ff8f33cae1dae1b3fb917 (diff)
merge revision(s) 49036: [Backport #10660]
* vm_core.h (rb_vm_living_threads_insert): preserve order [Bug #10660] [ruby-core:67154] [ruby-core:67159] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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++;
}