Optimizations around sources used only for linking

Jonathan Gibbons jonathan.gibbons at oracle.com
Thu Mar 20 20:23:43 UTC 2014



This change is in mainstream JDK 9 javac.

-- Jon

On 03/20/2014 12:15 PM, Raluca Sauciuc wrote:
> Hi,
> I have a question about sjavac and its parallel compilation model.
> In JDK7, source files used only for linking, even with -implicit:none, 
> are going though ATTR, FLOW, etc. just like the sources to be 
> compiled. This can be very expensive and unnecessary (attribution and 
> type checking can also require the resolution of other types, etc).
> Is sjavac taking advantage of any optimizations in this regard? If 
> yes, any pointers to code or changesets would be great.
> Thank you,
> Raluca

More information about the compiler-dev mailing list