Thursday 28 January 2021

Java9: Smart Java Compilation Enhancement

‘sjavac (Smart Java Compiler)’ is a wrapper around javac (Java Compiler) perform optimizations in compilation process. For example, it compiles necessary code only.

 

Main features of sjavac

a.   Enable incremental builds by modifying the Java compiler to run on all available cores in a single persistent process.

b.   Track package and class dependences between builds.

c.    Automatically generate header files for native methods, and clean up class and header files that are no longer needed.

 

There are stability issues with sjavac, due to this sjavac is not used by default in the JDK build scripts. Goal of this enhancement is to resolve these issues.

 

 

 

Reference

https://openjdk.java.net/jeps/199

https://openjdk.java.net/jeps/139

Previous                                                    Next                                                    Home

No comments:

Post a Comment