<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tetsuya32</author_name>
  <author_url>https://blog.hatena.ne.jp/tetsuya32/</author_url>
  <blog_title>good enough?</blog_title>
  <blog_url>https://tetsuya32.hatenadiary.org/</blog_url>
  <categories>
    <anon>日記</anon>
    <anon>Lua</anon>
  </categories>
  <description>今日はLuaではまってしまいました。各オブジェクトに1つのコルーチンを割り当て、オブジェクトごとにスクリプトを走らせているのですが、オブジェクトの数が一定以上になるとハングアップしてしまうという現象に悩まされました。止まる箇所が不定なので、てっきりメモリの解放し忘れや二重解放なのかと思ってチェックしてみましたが特に問題なし。もしかしてメモリが足りなくなったのかと調べてみましたが全然余裕がありました。 ふと思うところがあり、lua_newthread()の説明を読んでみたらそこに答えがありました。lua_newthread()は、スレッドを作成したあと、戻り値として作成したスレッドを返すのと一緒…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftetsuya32.hatenadiary.org%2Fentry%2F20080731%2F1217518755&quot; title=&quot;コルーチンのスレッドはスタックに積まれる - good enough?&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>2008-07-31 00:39:15</published>
  <title>コルーチンのスレッドはスタックに積まれる</title>
  <type>rich</type>
  <url>https://tetsuya32.hatenadiary.org/entry/20080731/1217518755</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
