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
This commit is contained in:
naruse 2014-12-31 04:27:02 +00:00
parent ee485d5d51
commit 488561c655
3 changed files with 9 additions and 4 deletions

View file

@ -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++;
}