United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7149991 EA: less allocations are eliminated after 7146442 fix
7149991 : EA: less allocations are eliminated after 7146442 fix

Details
Type:
Enhancement
Submit Date:
2012-02-29
Status:
Open
Updated Date:
2012-02-29
Project Name:
JDK
Resolved Date:
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P4
Resolution:
Unresolved
Affected Versions:
8-pool
Targeted Versions:
8-pool

Related Reports
Relates:

Sub Tasks

Description
After 7146442 fix in the next test only new array is eliminated when before both, array and object, were elimined:

  int test0_3(int y) {
    int x = 3;
    Point p[] = new Point[1];
    p[0] = new Point();
    p[0].x = x;
    p[0].y = 3 * x + y;
    return p[0].x * p[0].y;
  }

It happens because [0] element may contain NULL or new Point so that Point object marked as non scalar replacable in ConnectionGraph::adjust_scalar_replaceable_state().

To fix it do loads/stores domination checks in find_init_values().

                                    

Comments



Hardware and Software, Engineered to Work Together