Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7149991

EA: less allocations are eliminated after 7146442 fix

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • hs25, 8, 9, 10
    • 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().

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

              Created:
              Updated:
              Imported:
              Indexed: