Project

General

Profile

Backport #8891

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

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

Status:
Closed
Priority:
Normal
[ruby-core:57120]

Description

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

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

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

Associated revisions

Revision 90425153
Added by kosaki (Motohiro KOSAKI) over 5 years ago

  • 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

Revision 42906
Added by kosaki (Motohiro KOSAKI) over 5 years ago

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

Revision 42906
Added by kosaki (Motohiro KOSAKI) over 5 years ago

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

Revision 42906
Added by kosaki (Motohiro KOSAKI) over 5 years ago

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

Revision 42906
Added by kosaki (Motohiro KOSAKI) over 5 years ago

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

Revision 42906
Added by kosaki (Motohiro KOSAKI) over 5 years ago

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

Revision 42906
Added by kosaki (Motohiro KOSAKI) over 5 years ago

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

Revision a6929d1d
Added by nagachika (Tomoyuki Chikanaga) over 5 years ago

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]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@42926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 42926
Added by nagachika (Tomoyuki Chikanaga) over 5 years ago

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]

History

#1

Updated by kosaki (Motohiro KOSAKI) over 5 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 5 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 にも必要ですよね。

#3

Updated by nagachika (Tomoyuki Chikanaga) over 5 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby trunk 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)
#4

Updated by nagachika (Tomoyuki Chikanaga) over 5 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 5 years ago

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

Also available in: Atom PDF