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

assert(current != first_mem) failed: corrupted memory graph in superword code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 11
    • 11
    • hotspot
    • b12

      With test case:

      public class TestUnexpectedLoadOrdering {

          public static void main(String[] args) {
              double[] array1 = new double[1000];
              double[] array2 = new double[1000];
              for (int i = 0; i < 20_000; i++) {
                  test(array1, array2);
              }
          }

          private static double test(double[] array1, double[] array2) {
              double res = 0;
              for (int i = 0; i < array1.length; i++) {
                  array2[i] = i;
                  res += array1[i];
              }
              return res;
          }
      }

            roland Roland Westrelin
            roland Roland Westrelin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: