United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6534152 Escape analysis should split out unescaped obects as separate types
JDK-6534152 : Escape analysis should split out unescaped obects as separate types

Details
Type:
Bug
Submit Date:
2007-03-14
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2007-05-24
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
hs10 (b13)

Related Reports
Backport:
Backport:

Sub Tasks

Description
Currently, escape analysis (EA) creates new types for unescaped objects and relies
on the compiler's optimization mechanisms to propagate the new types throughout the
IR nodes.  However because the optimizer is using the type information to perform
optimizations as the types are propagating, EA needs to be much too conservative
about creating the new types in order to prevent incorrect optimizations caused
by partially propagated inconsistent type information.  The conservative type
splitting also drastically reduces the possibility of completely eliminating the
allocation of unescaped objects.

A better solution would be for the EA pass to do the type propagation and graph
modifications.  This would significantly improve the optimizations possible because
no other optimizations are being done and because EA accumulates information which
improves the ability to do the type splitting.

                                    

Comments
EVALUATION

This will be implemented by adding a pass at the end of escape analysis (EA)
which:
  -  identifies unescaped objects for which new types can be produced
  -  propagating the types through the graph
  -  updating the memory inputs of nodes to reflect the new types
                                     
2007-03-14



Hardware and Software, Engineered to Work Together