<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chiroito</author_name>
  <author_url>https://blog.hatena.ne.jp/chiroito/</author_url>
  <blog_title>#chiroito ’s blog</blog_title>
  <blog_url>https://b.chiroito.dev/</blog_url>
  <categories>
    <anon>JFR Under the hood</anon>
  </categories>
  <description>結論 C/C++ 側で Java のjdk.jfr.internal.EventWriterが作成されます。このインスタンスにはThreadLocalに作られたJava用のバッファへのポインタを保持しています。イベントが書込まれるとEventWriterはそのイベントをこのバッファへ書込みます。この書き込み処理は各イベントに commit メソッドを使って行われます。このメソッドは親クラスであるEventクラスでは空実装ですが、jdk.jfr.FlightRecorderクラスがイベントを読み込む際にバイトコードを操作されて、commitメソッドはイベントが持っているフィールドを先ほどのバッフ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fb.chiroito.dev%2Fentry%2Fjfr_commit_java&quot; title=&quot;JFR Under the hood : JFRイベントの書き込み -Java編- - #chiroito ’s blog&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>2020-07-17 18:59:44</published>
  <title>JFR Under the hood : JFRイベントの書き込み -Java編-</title>
  <type>rich</type>
  <url>https://b.chiroito.dev/entry/jfr_commit_java</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
