[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65744] Re: [ruby-cvs:55108] normal:r47959 (trunk): cont.c: Remove unused prev_fiber/next_fiber fields

From: SASADA Koichi <ko1@...>
Date: 2014-10-16 04:25:22 UTC
List: ruby-core #65744
Disable FIBER_USE_NATIVE works fine.

On 2014/10/16 13:22, SASADA Koichi wrote:
> FYI:
> 
> These double linked list were introduced to clean-up all active Fibers
> to guarantee the ensure process.
> 
> Fiber.new{
>   begin
>     Fiber.yield
>   ensure
>     do_something
>   end
> }.resume
> 
> # exit process, and "do_something" is expected.
> 
> However, currently "do_something" is not called because of difficulty of
> implementation.
> 
> 
> On 2014/10/16 7:34, [email protected] wrote:
>> normal	2014-10-16 07:34:30 +0900 (Thu, 16 Oct 2014)
>>
>>   New Revision: 47959
>>
>>   http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47959
>>
>>   Log:
>>     cont.c: Remove unused prev_fiber/next_fiber fields
>>     
>>     They were added in r19890 (8a0d53a), with the explanation that it's a
>>     double linked list of fibers in the same thread, but without any code
>>     using them.
>>     
>>     * cont.c (rb_fiber_t): remove prev_fiber/next_fiber
>>       (fiber_link_join, fiber_link_remove): remove functions
>>       (fiber_free, fiber_init, root_fiber_alloc):
>>        remove references to removed fields and functions
>>       [ruby-core:65518] [Feature #10341]
>>     
>>     Author: Knut Franke <[email protected]>
>>
>>   Modified files:
>>     trunk/ChangeLog
>>     trunk/cont.c
>>
> 
> 


-- 
// SASADA Koichi at atdot dot net

In This Thread

Prev Next