United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6420151 need to improve byfile compile policy to eliminate footprint issues
JDK-6420151 : need to improve byfile compile policy to eliminate footprint issues

Details
Type:
Bug
Submit Date:
2006-05-01
Status:
Closed
Updated Date:
2011-05-18
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
tools
OS:
generic
Sub-Component:
javac
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

Description
The byfile compile policy currently causes attribution of all files before any code is generated. This defeats other optimizations during code generation, such as discarding method bodies once they have been generated. As a result, the compiler cannot compile as many files as before, with the byfile policy.

                                    

Comments
EVALUATION

Two changes are required

-- the various "phase" methods on JavaCompiler should be changed to use lazy iterators instead of Lists

-- the todo list should be more byfile-friendly, so that it is possible to iterate all the todo elements for a file together. This could be done by replacing the current ListBuffer<Env<AttrContext>> with a Map<JavaFileObject,ListBuffer<Env<AttrContext>>>
                                     
2006-05-01



Hardware and Software, Engineered to Work Together