<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>keisukefukuda</author_name>
  <author_url>https://blog.hatena.ne.jp/keisukefukuda/</author_url>
  <blog_title>本当は怖いHPC &amp; AI</blog_title>
  <blog_url>https://freak-da.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>しばらく前からtwitterでRubyのGC読んでるとか読んでないとか言って、結局エントリ書いてなかったのでまとめ。RubyのGCは、mark and sweepというアルゴリズムを用いている。これは、「必要だとわかっているオブジェクトからスタートして、再帰的にmarkをつけていき、最終的にmarkが無いものを開放するというものだ。まあ発想は素直といえば素直。GCの流れを説明しよう。mark and sweepなので、markとsweepという２つのフェーズから構成されている。まず、説明をわかりにくくするためにsweepフェーズから説明すると、オブジェクト用の領域に関してはmallocを使って…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffreak-da.hatenablog.com%2Fentry%2F20071113%2Fp1&quot; title=&quot; [ruby] Rubyのgc.cを読んでみたまとめ - 本当は怖いHPC &amp;amp; AI&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-11-13 00:00:00</published>
  <title> [ruby] Rubyのgc.cを読んでみたまとめ</title>
  <type>rich</type>
  <url>https://freak-da.hatenablog.com/entry/20071113/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
