<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    On 06/03/2024 10:56, wenshao wrote:<br>
    <blockquote type="cite" cite="mid:574d3804-72e7-4292-a3a5-320bcabc4186.shaojin.wensj@alibaba-inc.com">
      
      <div class="__aliyun_email_body_block">
        <div style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#0070c0;">
          <div style="clear:both;"><span>Many libraries use Unsafe to
              improve performance, especially in many
              performance-critical scenarios of big data, such as Apache
              Flink/Apache Arrow, etc. Direct removal will make it
              difficult to adopt the new version of JDK. </span></div>
          <div style="clear:both;"><span><br>
            </span></div>
          <div style="clear:both;"><span>It is recommended to use it
              similar to JEP 396, which needs to be opened through
              parameters before it can be used and configured. The JVM
              startup parameter "--illegal-unsafe=warn" can be enabled. </span></div>
          <div style="clear:both;"><span><br>
            </span></div>
          <div style="clear:both;"><span>Removal should be after JDK 26.</span></div>
        </div>
      </div>
    </blockquote>
    <br>
    This discussion is about the JDK's internal Unsafe, not
    sun.misc.Unsafe.<br>
    <br>
    -Alan<br>
  </body>
</html>