Project

General

Profile

Actions

Backport #7452

closed

Main thread is stopped after running finalizers if the main thread has a finalizer

Added by mrkn (Kenta Murata) over 11 years ago. Updated about 11 years ago.

Status:
Closed
[ruby-dev:46647]

Description

以下のようにメインスレッドにファイナライザを登録すると、ファイナライザ実行後に止まってしまいます。

ObjectSpace.define_finalizer(Thread.main) {}

trunk と ruby_1_9_3 ブランチの先頭で発生することを確認しています。

trunk は以下の gist に貼った patch で修正できました。
https://gist.github.com/4159481

1.9.3 は以下の gist に貼った patch で修正できました。
https://gist.github.com/4159480

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0