Possible values for the “java.compiler” system property

依然范特西╮ 提交于 2020-01-14 07:42:28

问题


(I know this is probably a duplicate, but is it almost impossible to search this topic on Google or on SO.)

I know the java.compiler system property can take "NONE" which disables the JIT compiler, but I am interested in what other values are there and what are their performance characteristics.


回答1:


In the early days I believe it was intended that there be competition among external vendors to supply an external .dll/.so named by this property. symcjit.dll was the only one I ever encountered. SInce the advent of Hotspot I believe it's obsolete.




回答2:


java.compiler property is the name of the library to support java native compilers:

The Compiler class is provided to support Java-to-native-code compilers and related services. By design, the Compiler class does nothing; it serves as a placeholder for a JIT compiler implementation. When the Java Virtual Machine first starts, it determines if the system property java.compiler exists. (System properties are accessible through System.getProperty(String) and System.getProperty(String, String). If so, it is assumed to be the name of a library (with a platform-dependent exact location and type); System.loadLibrary(java.lang.String) is called to load that library. If this loading succeeds, the function named java_lang_Compiler_start() in that library is called.



来源:https://stackoverflow.com/questions/20228736/possible-values-for-the-java-compiler-system-property

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!