EA: less allocations are eliminated after 7146442 fix

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: hs25, 8, 9, 10
    • Component/s: hotspot
    • generic
    • generic

      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().

            Assignee:
            Vladimir Kozlov
            Reporter:
            Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: