4ææ«ããã¡ããã¡ããèªã¿å§ãã¦ãã£ã¨èªäºã(é ã¾ããéä¸ãä»äºããã§ã©ãã°ããã¦ãããããªã...ã æ¥æ¬ã§åã®ã¬ãã¼ã¸ã³ã¬ã¯ã¿(GCãã¡ã¢ãªå ã®ãæé¤ããã°ã©ã )æ¬ã謳ãæ¬æ¸ã[çè ã«ããç´¹ä»ãã¼ã¸] æè¿ã®ããã°ã©ã è¨èªã®è£ã§åãã¦ããã¬ãã¼ã¸ã³ã¬ã¯ã¿ã«ã¤ãã¦è§£èª¬ãã¦ãããããªãããããªå 容ãæ ã«ç¥ç好å¥å¿ããããããæ¬ã§ããã èªåã®å ´åããã®æ¬ãèªãã¾ã§ã¯GCã£ã¦ãããã¨ç¨®é¡ããããã©ãã¨ããããSunã®javaã«ã¯ä¸ä»£å¥GCãæ¨æºã§æè¼ããã¦ãã!ç¨åº¦ã®ç¥èãããªãã£ãã®ã§è²ã ã¨åå¼·ã«ãªã£ãã è²ã ãªGCå®è£ ããããã©ãåºæ¬ã¯MarkSweepGC,ReferenceCountingGC,CopyingGCã®3ãã¿ã¼ã³ã§å¾ã¯ããã®çµã¿åãããå¿ç¨ã§ã§ãã¦ããã¨ããã®ã¯æå¤ã ã£ãããããï¼ã¤ã®ãã¿ã¼ã³ã¨ã¯å ¨ãç°ãªãæ¬æ°ãªã¢ã¤ãã¢ã£ã¦ãªãããããªã...? ã¢ã«ã´ãªãºã ç·¨ã¨å®è£ ç·¨
ãã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®ã¢ã«ã´ãªãºã ã¨å®è£ ããèªäºãååã®ãã¢ã«ã´ãªãºã ç·¨ã㧠GC ã®åºæ¬ã¢ã«ã´ãªãºã ãç¶²ç¾ çã«è§£èª¬ããå¾åã®ãå®è£ ç·¨ãã§ã¯å®éã®å¦çç³»ã®ã½ã¼ã¹ã追ããªãã GC ã®å®è£ ãè¦ã¦ã¿ãã¨ããæ§æã§ãé常ã«é¢ç½ãã£ãã ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®ã¢ã«ã´ãªãºã ã¨å®è£ ä½è : ä¸æææ´,ç¸å·å ,竹å ééåºç社/ã¡ã¼ã«ã¼: ç§åã·ã¹ãã çºå£²æ¥: 2010/03/17ã¡ãã£ã¢: åè¡æ¬è³¼å ¥: 25人 ã¯ãªãã¯: 810åãã®ååãå«ãããã° (94件) ãè¦ã 以ä¸ãèªã¿ãªããæã£ããã¨ãã¡ã¢ãããã¨ãªã©ãã¾ã¨ãã¦ã¿ãã主ã«å¾åã®ãå®è£ ç·¨ããããæ¬æ¸ã®ä¸ã§è§£èª¬ããã¦ãããã¼ã¸ã§ã³ã¯ï¼å¹´ä»¥ä¸åã®ãã®ãªã®ã§ãææ°ã®å®è£ ã«ã¯ãã¦ã¯ã¾ããªãããã Python æ¡ç¨ããã¦ããã¢ã«ã´ãªãºã ï¼ åç §ã«ã¦ã³ã ãã¼ã¯ã¹ã¤ã¼ãGCï¼å¾ªç°åç §ããã´ãã®ååç¨ï¼ è¨è¿°è¨èªï¼ C Python ã®ã¨ã³ãã¦ã¼ã¶ã¼
GCã«ã¤ãã¦ãã®ãã¡åå¼·ãããã¨æã£ã¦ã ãã¶åã«è²·ã£ã¦ãããæ¬æ¸ããã£ã¨èªã¿çµããã ã¿ã¤ãã«éãã«GCã®ä¸è¬çãªè©±ããã¢ã«ã´ãªãºã ã®è©³ç´°ã¨å®è£ ã¾ã§ããã£ãããã£ããæ¸ãã¦ããã®ã§æ¬æ¸ã®âå 容ãç解ããã°GCã«ã¤ãã¦ã¯ãããªãã®ããã¯ã°ã©ã¦ã³ããã§ããã®ã§ã¯ãªããã¨æããããããæå³ã§ã¯è²´éãªä¸åãªã®ã ããæåããæå¾ã¾ã§GCã®è©±ã°ãããªã®ã§èªãã§ã¦ã¡ãã£ã¨ç²ããã¨ããã®ãæ£ç´ãªææ³ã æ£ç´ãä¸èªã§è§£èª¬ããã¦ããã¢ã«ã´ãªãºã ã«ã¤ãã¦ãã¡ãã¨ç解ããã»ã©éä¸ã§ããããã£ãããµãã¨èªã¿é£ã°ããã¨ãããããã®ã§ããã®ãã¡ã¾ãæ°ã«ãªã£ãã¨ãã«èªã¿è¿ããã¨æãããã ãéã«ç 究ã¬ãã«ã§å¿ è¦ãªãããç解ããã«ã¯æ¬æ¸ã ãã§ã¯ã¡ãã£ã¨è¶³ããªãã®ã§ã¯ãªããã¨æãã®ã§ãåç §ããã¦ããè«æã¾ã§è¿½ããããå¿ è¦ãããã¨æãã ã¨ããããããã°ã£ã¦èªã¿çµããããã®ã§è¯ãã£ãã
ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®ã¢ã«ã´ãªãºã ã¨å®è£ ãèªãæºåã¨ãã¦minigc(tree:ff305e...)ãèªãã§ããã®ã§ãããã©ãã«ãããåãããªãã¨ãããã§ã¦ãã¾ãããããã¯gc_mark_stack()ãéãã¦ãã¤ãªãã¸ã§ã¯ãããã¼ã¯ãããã®ãã¨ãããã¨ã§ããå°ãªãã¨ãã¼ãã®ç°å¢ã§ã¯ãgc_mark_stack()ãæ©è½ããã³ã¼ãä¾ãä½ããã¨ã¯ã§ãã¾ããã§ããããã¤ããgc_mark_register()ã®æ¹ã ããåãã¦ããããã§ãã ããã§ã¼ãã試ãããã¨å ¨ã¦æ¸ãã¦ããã¡ããã¡ãããã®ã§ããªãªã¸ãã«ããã¾ãããããªãç¯å²ã§ç¢ºããã¦ã¿ã¾ããç°å¢ã¨ãã¦ã¯ãubuntuã使ã£ã¦ãã¾ãããã¾ããã¹ããå®è¡ããããã«ã次ã®ããã«ã³ãã³ããæã¡ã¾ãã git clone https://github.com/authorNari/minigc.git minigc cd minigc make te
æ¸èªæ å ± èè : ä¸æææ´ çºè¡æ¥: 2011-06-27 æçµæ´æ°æ¥: 2012-02-03 ãã¼ã¸ã§ã³: 1.0.0 ãã¼ã¸æ°: 62ãã¼ã¸(A4PDFçæç®) 対å¿ãã©ã¼ããã: EPUB, PDF åºç社: é人åºçä¼ å¯¾è±¡èªè é«åº¦ãªGCã®ã¢ã«ã´ãªãºã ã«èå³ã®ããæ¹ããã§ã«ãã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®ã¢ã«ã´ãªãºã ã¨å®è£ ããèªã¾ãã¦ãã¦ãç¶ããèªã¿ããæ¹ èè ã«ã¤ã㦠ä¸æææ´ ä¸æææ´ï¼nariï¼ã¯ãããã¯ã¼ã¯å¿ç¨éä¿¡ç 究æã«å¤ãã¦ããRubyistã§ããä»äºã§ã¯Railsã使ã£ã¦Webã¢ããªã±ã¼ã·ã§ã³ãéçºãã¦ãã¾ããé«æ ¡ãåæ¥ãã¦ããã¯ã¢ã¤ã¹å·¥å ´ã«2å¹´åãã¦ãããããããã°ã©ãã«è»¢è·ãã¾ããã GCã«é äºããã¦ãã¾ã£ã人éã§ãGCæ´ã¯4å¹´ã«ãªãã¾ããCRubyã®ã³ããã¿ã¨ãã¦1å¹´ã«1度ã®ãã¼ã¹ã§GCã®æ¹åã«åãçµãã§ãã¾ããå»å¹´ã¯CRubyã«æ°ããåãè¾¼ã¾ããLazySweepG
21:29 | èªåã®ãã¼ã¸ãè¦ã¦ï¼åå¹´è¿ã(å»å¹´æ«ä»¥æ¥)ãã¤ã¢ãªã¼ãæ¸ãã¦ããªããã¨ã«æ°ä»ãã¦ã³ã£ããããï¼ãªãããã¾ã§æ¸ããªããªã£ããã ããã¨æã£ã¦èãã¦ã¿ãã¨ããã¤ãã®çç±ãæãå½ãã£ãï¼ã¾ãï¼ä»å¹´æåã«å§ãã"åºæ¥äºãèããªã©ãããã¹ããã¡ã¤ã«ã«1æ¥1ãã¡ã¤ã«åä½ã§ã¾ã¨ãã¦ãã"ã¨ããè¨é²æ´»åãç¿æ £åãã¦ãã¦ï¼ãã®ããã§diaryãæ¸ããã¨ããæ°æã¡ãå¼±ããªã£ã¦ããã®ããï¼$ wc -l ~/diary/2011/*/* | tail -1 5321 total空è¡ããããã©ï¼1æ¥30è¡ç¨åº¦æ¸ãã¦ããããã ãã1ã¤ã®çç±ã¯ï¼ã¡ãã£ã¨ããæè¡ãã¦ãã¦ãããæ¸ãã¦ããããã©ãä½ãä¸æ¯æã¨ãããéç®±ã®é ã¤ã£ã¤ãæãããï¼ãããªè¨äºã°ããæ¸ãã®ã¯ã©ããªã®ãï¼ã¨æãå§ãã¦ãããã¨ï¼æ å ±ã®ä¾¡å¤ã¯åãåãæã決ãããã¨ã ããã¨æãã¤ã¤ï¼ä¸åº¦ãã®æããæµ®ããã§ããã¯ãããããã¤ã¢ãªã¼ã«æ®ããã¨ã
ãä¹ ãã¶ãã§ãããã¤ã¸ã¼ã§ãã æè¿ã¯ã¡ã¢ãªç®¡çã«ã¤ãã¦åå¼·ãã¦ãã¾ã çãããCè¨èªã§ã¡ã¢ãªç¢ºä¿ããéã¯mallocã使ç¨ãã¦ããã¨æãã¾ãã C++è¨èªã«ãªã£ã¦ããnewã使ç¨ããããã«ãªããç´ã«mallocã使ç¨ããæ©ä¼ãæ¸ã£ãã¨æãã¾ããã ã²ã¼ã å¶ä½ã«ããã¦ã¯ãã¡ã¢ãªãå³å¯ã«ç®¡çãããã¨ããçç±ã§ãèªä½ã¡ã¢ãªã¢ãã±ã¼ã¿ãæ¸ãã¨ãããã¨ãããã¾ãã (ã¾ããmallocã¯é ãã®ã§ã¢ãã±ã¼ã¿ãæ¸ãã¨ãã話ãè³ã«ãã¾ãã) ã ããã§ããµã¨æã£ãã®ã§ãããæ¬å½ã«mallocã¯é ãã®ã§ãããã mallocã«ã¤ãã¦èª¿ã¹ã¦ã¿ãã¨ãé«éåãå³ãããã«ãããããªæ¹è¯ãããmallocãèæ¡ããã¦ãã¾ããã ã»dlmalloc ã»phkmalloc ã»jemalloc ã»tcmalloc ã»nedmalloc ...etc 以ä¸ã«æããmallocã®å®è£ ã¯ãã½ã¼ã¹ã³ã¼ããè¦ããã¨ãã§ããã®ã§åå¼·
Some people know the article "Coming From Ruby" by David Black, and some people may remember the photo of Japanese Ruby Books. http://www.infoq.com/articles/coming-from-ruby Yes, the all books on the photo are mine :) I brought them from Japan in RubyConf 2002. After 8 years, in 2010, there are tons of Ruby books published all over the world. Of course, so is in Japan. As Ruby book collector, I've
jamboree.jp 2024 èä½æ¨©. ä¸è¨±è¤è£½ ãã©ã¤ãã·ã¼ããªã·ã¼
ä¹ ã (?!)ã®æè¡ãã¼ã¯ãæ¬æ¥é¢ã¸ã£ãã«ã¦ããã¦é ãã¾ãããçºè¡¨è³æã¯ä»¥ä¸ã®éãã§ãã ãããç»åã®ã¯ã¬ã¸ããã¯ä»¥ä¸ã®éãã(CC ã®ç»åã§ããã表è¨ä¸è¶³çããã°ãææããããã¨å¬ããã§ã) author : artcomments source : http://www.flickr.com/photos/artcomments/382733093/in/photostream/ (2010/10/02 追è¨) id:shin ããã«ãææããã ãã-Xincgc ã¯ç¾å¨ã®å®è£ ã¯ã³ã³ã«ã¬ã³ãã³ã¬ã¯ã¿ (-XX:+UseConcMarkSweepGC ) ãé¸æãããããã«ãªã£ã¦ãã¾ããã®ã§ã該å½ã¹ã©ã¤ãããåé¤ãã¾ããã > -Xincgc -verbose:gc -XX:+PrintGCDetails ããããã¤ãã¦é©å½ãªããã°ã©ã å®è¡ãã¦é ãããã確èªåºæ¥ãã¨æãã¾ãã å°ã1.4.
2010å¹´8æ27æ¥ãã29æ¥ã¾ã§ã®3æ¥éãã¤ãã°å½éä¼è°å ´ã«ã¦æ¥æ¬Rubyä¼è°2010ãéå¬ããã¾ããã å¼ç¤¾åããã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®ã¢ã«ã´ãªãºã ã¨å®è£ ã ã®èè ã®ä¸äººãä¸æææ´ããã ãããããã¯ãGCãXåé ãã§ãããã¨ããé¡ã§è¬æ¼ããã¾ããã ä¸æããã¯ãCRubyã®GCã«Lazy Sweepï¼ä¸è¨æ¸ç±ããæã¡ã®æ¹ã¯ã39ãã¼ã¸ã«è§£èª¬ãããã¾ãï¼ãå°å ¥ããæ¹åææ¡ãè¡ã£ã¦ãã¾ãã Ruby 1.9.3 HEADã§ã¯ãLazy Sweepã®å°å ¥ææãæ¤è¨¼ãããã¨ãã§ãã¾ãã ã»æ¤è¨¼ç¨ã®ãã¢ã¢ããªãkaboomãï¼GitHubï¼ http://github.com/authorNari/kaboom ã»è¬æ¼ã®æ§åï¼ã«ãã«ãåç»ï¼ http://www.nicovideo.jp/watch/sm11902231 ã»ã¹ã©ã¤ãï¼SlideShareï¼ http://ww
ä»æ¥ããV8 ã® GCãã®ã³ã³ãã¯ã·ã§ã³å¦çã®ã¨ããããã§ã forwarding ãã¤ã³ã¿ããªãã»ããã«ãã¦ãããã«ãã¼ã¸æ§é ãå°å ¥ãããã¨ã§11ããã㧠forwarding ãã¤ã³ã¿ç¸å½ã®æ å ±ãè©°ãè¾¼ãã§ãããããã Map ãªãã¸ã§ã¯ãã®ãã¤ã³ã¿ãåæ§ãä½åãªãã£ã¼ã«ããä½ããã¡ã¢ãªå¹çãèãã工夫ã è¨æ¶éåã®æ´æ° ããã§ç¬¬12ç« ãV8 ã® GCããçµããã¾ããã V8 ã® GC ãèªãã§ã¿ã¦ãç´°ããªå·¥å¤«ãæãã£ããè©°ãè¾¼ã¾ãã¦ãã¦æ¥½ããã¨ããä¸æ¹ãC++ ã®åå¼·ãããªãã¨ãããªãããªãã¨ããæ°ã«ãªã£ã¦ãã¾ãããæè¿ã®ããã¸ã§ã¯ã㯠C++ ã§æ¸ããã¦ãããã¨ãå¤ãã®ã§ããããªãã«èªããç¨åº¦ã«ã¯ç¥ã£ã¦ãããªãã¨ãããªãã¨ããæ°ããã¦ãã¾ããã ãã¦ãé·ãã£ããã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®ã¢ã«ã´ãªãºã ã¨å®è£ ããä»æ¥ã§çµããã§ãããè£éºã㯠Python ã Ruby ã®ç°¡æè¨èªå ¥éãªã®ã§
ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®ã¢ã«ã´ãªãºã ã¨å®è£ ä½è : ä¸æææ´,ç¸å·å ,竹å ééåºç社/ã¡ã¼ã«ã¼: ç§åã·ã¹ãã çºå£²æ¥: 2010/03/17ã¡ãã£ã¢: åè¡æ¬è³¼å ¥: 25人 ã¯ãªãã¯: 810åãã®ååãå«ãããã° (94件) ãè¦ãç«ã¡èªã¿ã§ææ ¢ã§ããã«è³¼å ¥ãä»æ¥ã¯å°ãé çãããã®ã§å 容ããã¾ãé ã«å ¥ããªããå¾æ¥ã¡ããã¨èªããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}