ruby-changes:36955
From: normal <ko1@a...>
Date: Sat, 27 Dec 2014 15:11:24 +0900 (JST)
Subject: [ruby-changes:36955] normal:r49036 (trunk): vm_core.h: preserve thread ordering
normal 2014-12-27 15:11:10 +0900 (Sat, 27 Dec 2014) New Revision: 49036 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49036 Log: vm_core.h: preserve thread ordering I'm hesitant to consider this as spec, but this causes a user-visible change which could break user code. * vm_core.h (rb_vm_living_threads_insert): preserve order [Bug #10660] [ruby-core:67154] [ruby-core:67159] Modified files: trunk/ChangeLog trunk/vm_core.h Index: ChangeLog =================================================================== --- ChangeLog (revision 49035) +++ ChangeLog (revision 49036) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Dec 27 15:08:27 2014 Eric Wong <e@8...> + + * vm_core.h (rb_vm_living_threads_insert): preserve order + [Bug #10660] [ruby-core:67154] [ruby-core:67159] + Sat Dec 27 13:08:20 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> * ext/socket/socket.c: improved document for YARD doc. Index: vm_core.h =================================================================== --- vm_core.h (revision 49035) +++ vm_core.h (revision 49036) @@ -975,7 +975,7 @@ rb_vm_living_threads_init(rb_vm_t *vm) https://github.com/ruby/ruby/blob/trunk/vm_core.h#L975 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++; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/