[#66678] [ruby-trunk - Feature #10481] Add "if" and "unless" clauses to rescue statements — alex@...
Issue #10481 has been updated by Alex Boyd.
3 messages
2014/12/04
[#66762] Re: [ruby-changes:36667] normal:r48748 (trunk): struct: avoid all O(n) behavior on access — Tanaka Akira <akr@...>
2014-12-10 0:44 GMT+09:00 normal <ko1@atdot.net>:
3 messages
2014/12/10
[#66851] [ruby-trunk - Feature #10585] struct: speedup struct.attr = v for first 10 attributes and struct[:attr] for big structs — funny.falcon@...
Issue #10585 has been updated by Yura Sokolov.
3 messages
2014/12/15
[#67126] Ruby 2.2.0 Released — "NARUSE, Yui" <naruse@...>
We are pleased to announce the release of Ruby 2.2.0.
8 messages
2014/12/25
[#67128] Re: Ruby 2.2.0 Released
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2014/12/25
I can't install it in any of our Ubuntu servers using rbenv:
[#67129] Re: Ruby 2.2.0 Released
— SHIBATA Hiroshi <shibata.hiroshi@...>
2014/12/25
> I can't install it in any of our Ubuntu servers using rbenv:
[ruby-core:67155] Re: [ruby-trunk - Feature #10658] [Open] ThreadGroup local variables
From:
Eric Wong <normalperson@...>
Date:
2014-12-26 21:49:10 UTC
List:
ruby-core #67155
godfat@godfat.org wrote:
> * What I was doing before: Assume ThreadGroup#list.first is the owner of
> the group, thus the worker thread, and use that thread to store the number.
> Something like:
>
> Thread.current.group.list.first[:assertions] += 1
>
> This works for Ruby 1.9, 2.0, 2.1, but not for 2.2.
> This also works for Rubinius. I thought this is somehow an expected behaviour,
> therefore did a patch for JRuby to make this work:
> https://github.com/jruby/jruby/pull/2221
> Until now it failed on Ruby 2.2, did I know the order was not preserved...
Oops, can you try the following?
--- 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++;
}
Ordering is preserved, just backwards.
But I am unsure if order should be spec which is relied on...