<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinichiro_h</author_name>
  <author_url>https://blog.hatena.ne.jp/shinichiro_h/</author_url>
  <blog_title>兼雑記</blog_title>
  <blog_url>https://shinh.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>http://dev.gentoo.org/~dberkholz/articles/toolchain/tls.pdfを読みました。 TLS の実装はざっくり言うと常に TLS 管理領域を指してるレジスタを一個作ってて、それをスレッドごとに別の値にするだけ。 86 ではセグメントレジスタが使われてる…くらいのざっとした理解はまぁ一般的にあると思うんですが、細かい実装となるとなかなか難しい。間違ってるとこあるかもですがなんか書いてみます。TLS はまず、本当に全スレッドが使うの? って話があるので、メモリ効率を考えると遅延ロードをした方がいい。ただ遅延ロードするとなるとどうしても関数呼び出しとか…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinh.hatenablog.com%2Fentry%2F20130527%2F1369581821&quot; title=&quot; Thread local storage - 兼雑記&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>2013-05-27 00:23:41</published>
  <title> Thread local storage</title>
  <type>rich</type>
  <url>https://shinh.hatenablog.com/entry/20130527/1369581821</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
