<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>My understanding is that they are similar, but disable different
optimizations. A blackhole is to disable dead-code elimination,
while ensureMaterializedForStackWalk is to disable scalarization.</p>
<p>dl<br>
</p>
<div class="moz-cite-prefix">On 1/29/24 12:15 AM, shami wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAPOPQF=Keagp3K2soT+JEUmXLbjRRX8UDB=+HQSk_0xytTBRNg@mail.gmail.com">
<div dir="ltr">Hello,<br>
<br>
I am trying to understand the JDK20 intrinsic -
Thread.ensureMaterializedForStackWalk (<a href="https://github.com/openjdk/jdk/pull/10952/files" moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/openjdk/jdk/pull/10952/files</a>).<br>
<br>
It seems to be functionally equivalent to the <i>Blackhole.consume</i>
intrinsic. <br>
<br>
Is there any subtle difference(s) between the two, or can one be
implemented using the other? <br>
<br>
Thanks in advance.<br>
Shami.<br>
</div>
</blockquote>
</body>
</html>