From: Narihiro Nakamura
Date: 2012-11-30T08:08:57+09:00
Subject: [ruby-dev:46666] Re: [ruby-trunk - Bug #7452] Main thread is stopped after running finalizers if the main thread has a finalizer
2012å¹´11æ29æ¥ 18:01 Nobuyoshi Nakada :
> (12/11/28 21:42), authorNari (Narihiro Nakamura) wrote:
>> ããad-hocã§ããããããªæãã§ãªããã¦ã¿ã¾ããã
>> https://gist.github.com/4160845
>> VMããè¦ãã¦ãããã®ã¯ã¨ãããããã¼ã¯ãã¦ããã¦ãé常ã®ãã¡ã¤ãã©ã¤ãºã¯åé¿ããå¼·å¶çãªãã¡ã¤ãã©ã¤ãºã§ããããå®è¡ãããããã«ãã¦ãã¾ãã
>
> VMããè¦ãã¦ãããã®ãfinalizeããã¦ãã¾ãã¨ããã®ã¯åç´ãªãã¼ã¯æ¼ãã®ãã°ã¨èãã¦ããããããªãã§ãããã
>
rb_objspace_call_finalizerã§ã¯ãã¼ã¯ããã¹ã¦ã®ãªãã¸ã§ã¯ãã«ä»ãã¦ãªãç¶æ
ã§å®è¡ããããã§ãããã
ãªã®ã§ããããããã¨ããã§VMããè¦ãããã®ã ããã¼ã¯ããã ããããªããgc_marksã¨ãèªãã ã»ããããã®ããã§ããâ¦ã
ã¨ããããã¯ããã»ã¨ãã©å¼·å¶çãªãã¡ã¤ãã©ã¤ãºãã®æ¹ã§ã³ããããã¦ã¿ã¾ããã
test-allãªã©ã¯éã£ãã®ã§ã¨ããããããã§æ§åãè¦ããã¨ãããã¾ãã
--
Narihiro Nakamura (nari)