[#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:65629] [CommonRuby - Feature #10371] Use Thread#handle_interrupt in MonitorMixin

From: nerdrew@...
Date: 2014-10-12 06:44:23 UTC
List: ruby-core #65629
Issue #10371 has been updated by Andrew Lazarus.


There was an old bug that might have been related: https://bugs.ruby-lang.org/issues/4266

----------------------------------------
Feature #10371: Use Thread#handle_interrupt in MonitorMixin
https://bugs.ruby-lang.org/issues/10371#change-49362

* Author: Andrew Lazarus
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
Now that ruby has Thread#handle_interrupt, MonitorMixin can always unlock the mutex even when a timeout exception is raised.

Currently, if a timeout exception is raised in MonitorMixin#mon_exit at just the wrong time, the @mon_owner is set to nil, but the @mon_mutex is still locked. ThreadError: deadlock; recursive locking is raised the next time the resource is accessed.



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next