summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-10 23:21:17 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-10 23:21:17 +0000
commit90425153fbd26f9e5bdaa0a2df805b2a37350e9b (patch)
tree218054493df32ee6968a0d402cc00fef11a586ef /thread.c
parent5b46f6c602c24c9cdf995914fc6998981f1e53ec (diff)
* thread.c (rb_mutex_unlock): Mutex#unlock no longer raise
an exception even if uses on trap. [Bug #8891] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/thread.c b/thread.c
index 826a81b8b5..c2f6678b7b 100644
--- a/thread.c
+++ b/thread.c
@@ -4481,11 +4481,6 @@ rb_mutex_unlock(VALUE self)
rb_mutex_t *mutex;
GetMutexPtr(self, mutex);
- /* When running trap handler */
- if (!mutex->allow_trap && GET_THREAD()->interrupt_mask & TRAP_INTERRUPT_MASK) {
- rb_raise(rb_eThreadError, "can't be called from trap context");
- }
-
err = rb_mutex_unlock_th(mutex, GET_THREAD());
if (err) rb_raise(rb_eThreadError, "%s", err);