<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Naotsugu</author_name>
  <author_url>https://blog.hatena.ne.jp/Naotsugu/</author_url>
  <blog_title>A Memorandum</blog_title>
  <blog_url>https://blog1.mammb.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>はじめに ThreadLocal の問題点 Scoped Values blog1.mammb.com はじめに java.lang.ScopedValue は、java.lang.ThreadLocal と同様に、スレッド毎のローカル変数を提供します。 java.lang.ThreadLocal と異なり、この変数はイミュータブルで限定的な生存期間を持ちます。 java.lang.ScopedValue は、仮想スレッド(JEP 444)や構造化並行処理(JEP 505)で効率的なスレッドローカル変数を扱うことができます。 Scoped Values は、以下のプレビュー段階を経て、JDK …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F2025%2F05%2F11%2F000000&quot; title=&quot;JEP 506 : Scoped Values - A Memorandum&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>https://cdn-ak.f.st-hatena.com/images/fotolife/N/Naotsugu/20200724/20200724174249.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-05-11 00:00:00</published>
  <title>JEP 506 : Scoped Values</title>
  <type>rich</type>
  <url>https://blog1.mammb.com/entry/2025/05/11/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
