Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determining whether a particular JDK Method typically has an intrinsic implementation

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)?

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?

like image 567
Donald_W Avatar asked Apr 18 '15 19:04

Donald_W


1 Answers

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

"Here are all the intrinsics known to the runtime and the CI."

So I suppose that's comprehensive enough!

like image 144
Donald_W Avatar answered Sep 24 '22 00:09

Donald_W