Project

General

Profile

Actions

Backport #8891

closed

Mutex#unlock が trap handlerから呼べない

Added by kosaki (Motohiro KOSAKI) over 10 years ago. Updated over 10 years ago.


Description

[ruby-dev: 46644] で Mutex#try_lock は trapから呼べるように仕様変えたと言っているのに
unlockが依然として例外あげるので実質そうなっていませんでした。

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/46644

確認不足、申し訳ない。直します。

Actions #1

Updated by kosaki (Motohiro KOSAKI) over 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r42906.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • thread.c (rb_mutex_unlock): Mutex#unlock no longer raise
    an exception even if uses on trap. [Bug #8891]

Updated by nagachika (Tomoyuki Chikanaga) over 10 years ago

  • Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: REQUIRED

トラップハンドラ内で try_lock を許すようにしたのが r37922 (2012-11-28) だと思うので 2.0.0 にも必要ですよね。

Actions #3

Updated by nagachika (Tomoyuki Chikanaga) over 10 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport200
  • Category deleted (core)
  • Status changed from Closed to Assigned
  • Assignee changed from kosaki (Motohiro KOSAKI) to nagachika (Tomoyuki Chikanaga)
  • Target version deleted (2.1.0)
Actions #4

Updated by nagachika (Tomoyuki Chikanaga) over 10 years ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r42926.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 42906: [Backport #8891]

* thread.c (rb_mutex_unlock): Mutex#unlock no longer raise
  an exception even if uses on trap. [Bug #8891]

Updated by kosaki (Motohiro KOSAKI) over 10 years ago

nagachikaさん、そのとおりです。対応感謝します

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0