Difference between [jdk20] Thread.ensureMaterializedForStackWalk and Blackhole.
dean.long at oracle.com
dean.long at oracle.com
Wed Jan 31 00:54:41 UTC 2024
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.
dl
On 1/29/24 12:15 AM, shami wrote:
> Hello,
>
> I am trying to understand the JDK20 intrinsic -
> Thread.ensureMaterializedForStackWalk
> (https://github.com/openjdk/jdk/pull/10952/files).
>
> It seems to be functionally equivalent to the /Blackhole.consume/
> intrinsic.
>
> Is there any subtle difference(s) between the two, or can one be
> implemented using the other?
>
> Thanks in advance.
> Shami.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-compiler-dev/attachments/20240130/27054a75/attachment.htm>
More information about the hotspot-compiler-dev
mailing list