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

[lworld] acmp should support value class with cyclic membership

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • repo-valhalla
    • repo-valhalla
    • hotspot

      JDK-8293321 makes ValueObjectMethods::isSubstitutable to support cycles. This is to track the equivalent work in C2 acmp implementation.

      value class Node {
          Node node;
      }

      var n1 = new Node(null);
      var n2 = new Node(n1);

      n1 == n2;

      run with -Xcomp, result in illegal hardware instruction

            thartmann Tobias Hartmann
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: