[ruby-core:66864] Re: [ruby-trunk - Bug #10595] [Closed] interrupts not handled while finalizers running

From: Eric Wong <normalperson@...>
Date: 2014-12-16 00:53:39 UTC
List: ruby-core #66864
nobu@ruby-lang.org wrote:
> vm_trace.c: defer interrupts while postponed jobs
> 
> * vm_trace.c (rb_postponed_job_flush): mask signal trap interrupt
>   too to defer handling after finalizers finished.
>   [ruby-core:66825] [Bug #10595]

Sorry, I tried something like this but it's not effective if the
finalizer has an expensive (or infinite) loop.

I suppose it's better than nothing and finalizers should not
be expensive...

In This Thread

Prev Next