确定特定的JDK方法是否通常具有内部实现 [英] Determining whether a particular JDK Method typically has an intrinsic implementation

查看:63
本文介绍了确定特定的JDK方法是否通常具有内部实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读OpenJDK源代码(我不反对)的简短内容是

Short of the reading the OpenJDK source code (which I'm not averse to) is there a reasonably comprehensive (or 'official') list of intrinsic operations within the Hotspot JVM (say for Intel)?

例如,确定是否最快的方法是什么 Math.abs() 通常会在任何使用位置直接转换为一些本机指令?

For example, what's the quickest way to determine whether Math.abs() will generally be converted directly to a few native instructions wherever it is used?

推荐答案

OpenJDK源代码的相关部分指出:

The relevant part of the OpenJDK source code states:

http://hg.openjdk.java.net/jdk8/jdk8/hotspot/file/87ee5ee27509/src/share/vm/classfile/vmSymbols.hpp#l581

这里是运行时和CI已知的所有内在函数."

所以我想这已经足够全面了!

So I suppose that's comprehensive enough!

这篇关于确定特定的JDK方法是否通常具有内部实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆