禁用JIT热点自动化
我想禁用Java中C2 JIT热点编译器执行的矢量化,以便为JMH基准套件创建基线。
现在,我传递了可选的JVM参数-xx:-issuperword
以停用超级字循环优化。
这样做所有SIMD包装的汇编指令(例如VADDP),我可以找到SIMD标量指令(例如VADDSS)。
因此,据我所知,这应该足够了,但是我想知道Hotspot是否具有其他向量优化?如果是,如何禁用它们?
I want to disable the vectorization performed by the c2 JIT Hotspot compiler in Java such that to create a baseline for a JMH benchmark suite.
For now I pass the optional JVM argument -XX:-UseSuperWord
to deactivate the Super word loop optimization.
Doing that all SIMD packed assembly instruction (e.g, vaddps) are not used, instead I can find SIMD scalar instruction (e.g, vaddss).
So as far as I know this should be enough, but I wonder if Hotspot has other vector optimization? If yes how it possible to disable them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论