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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b12

      Description

      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;
          }
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: