Issue #8024 has been updated by authorNari (Narihiro Nakamura).


ko1 (Koichi Sasada) wrote:
> (2013/03/24 12:35), authorNari (Narihiro Nakamura) wrote:
>  >> > ?????帥?障??????????<????c???????c?????????с????????
>  >> >  ObjectSpace.each_object 筝?c?? lazy GC 莎激????????????????c??障?????????
>  >> >  
>  >> >  (1) lazy sweep ???罩≪???????????????ャ?鴻????????ч??????
>  >> >  ObjectSpace.each_object ???絎?茵???????????
>  >> >  鐚???с???????筝??? sleep ??????????????????????????ц??????????????c???????с????????
>  >> >  ?????c??障?????鐚?
>  >> >  
>  > ?????帥?障???????????篆罩???絎鴻??????????茹c?с????障???????с????????
>  > ??ャ?鴻????????у??茵??????????????茹f浦?????????с???????????鐚?
>  
>  篆罩???絎剛???????????????荅宴?с??????
>  
>  (1-1) lazy sweep ??????????????ObjectSpace.each_object
>        ???絎?茵?筝?? lazy sweep ???≦?鴻????
>  
>  (1-2) 箴??????違??
>      Thread.new{ObjectSpace.each_object{sleep} # sleep ??ф??障??
>      ... 篁?????? ...
>  ?????????????????篁?????????絎?茵?筝?? lazy sweep 罩≪?障?c??????
>  
>  (1-3) ??違???????<?純??????????絎?臂????????????Lazy sweep ?????≦?鴻??????
>        ?????????с?????
>  
>  ???????荅宴??腆肴?????????????c?????с??????????????????????????腱????篏?????????????????????????????
>  ???????????????????с????ゃ?障??????????? ticket ??膂?????????с??????????????????????
>  ?????????<????????絎?茖?箴?絖???? bad know-how ??с????????????????????篁?????????????茖?箴?
>  絖??????????絲??????茯炊?祉???с????障????????????????
>  

??????????????????祉????????c?????????????????????????????障?????

>  >> >  (2) ??с???????若?????≦宍????????障??????????????????ObjectSpace.each_object 筝??
>  >> >  ??????罕????榊??????????с???????????鐚??????????????????????????????????????т信罩c?????????????
>  >> >  ??????????????????????障?????
>  >> >  
>  > ???????篆罩???綽?荀?????????????障??鐚????с???????????????障??鐚????
>  > ?????????ObjectSpace.each_object??筝??с????若???????≦宍??????????????????潟?若?????♂?????若?????????醇?с???????????с???????????????????障???ィ絅??????????潟?若??????????????с???????
>  
>  each_object ????茵????罩≪?障????????醇?с????с???????????????????????с????障???????????
>  ??莨????????帥?????????∞??????????????????????????
>  
>  ??с???????篆罩c????ャ????????????吟?с?? (1) ????膂≦????罩?????????????????????????
>  ???????????????????絎????????????????句???????ャ?????????????????????с?????????
>  

(1)???号????х亜?????罩????????????????????????若????≦宍????????障?????????????句???????ャ????????????????潟?с???????????鐚?
??????????????????c???????????????????????????障??鐚???????trunk??с?篆罩c????<???????障??????????? :P鐚?
----------------------------------------
Feature #8024: Lazy sweep ??? on/off ???????????????????
https://bugs.ruby-lang.org/issues/8024#change-37899

Author: mrkn (Kenta Murata)
Status: Closed
Priority: Normal
Assignee: authorNari (Narihiro Nakamura)
Category: core
Target version: 


Lazy sweep ??? on/off ??????罘???純??菴遵????????????????????篏??????障????????
????????????????医??紊????1??ゃ?? GC ???≪?吾?ャ?若??∽??2??ゃ??菴遵???????障?????

??医??紊???違?? RUBY_GC_DISABLE_LAZY_SWEEP ??с?????
????????? 0 篁ュ?????贋?違??荐???????? ruby ???絎?茵???????????
lazy sweep ??? off ???倶????у??茵?????????障?????

GC ??菴??????????????≪?吾?ャ?若??∽?違?? disable_lazy_sweep ??? enable_lazy_sweep ??с?????
???絖??????????lazy_sweep ??? on/off ???????????帥?????????????篏?????障?????

????????????????篏???????潟?c??腟?膩???Lazy sweep ??? on ??????????????????? SEGV ???
綣?腓障?????鴻????潟?若????х?榊????????????????????с?????
SEGV ???榊????>散?????障??腟?????????????????????罧?綽泣???????????医?怨?????障????с????障????????

??????? Lazy sweep ???罩≪?????????荀?????????c???????????c?????????????с????????
篁???篋??綵????腴???ゃ?????????????障????????с???????<????ф??罅????????????????障?????

trunk/2.0.0 ??? ??? https://gist.github.com/mrkn/5096076

1.9.3 ??? ??? https://gist.github.com/mrkn/5096071


-- 
http://bugs.ruby-lang.org/