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

[lworld] C1 aastore of flattened array needs null check for L-types

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: hotspot
    • Labels:

      Description

      For a test program like this:

          Point[] arr = ...
          Point p = ..... // Q-type
          Point.box b = .... // L-type

          arr[0] = p; // no need for null check
          arr[1] = b; // need for null check

      C1 is currently missing a null check for the second aastore. As a result, the test case TestNullableValueTypes.test14 fails.

        Attachments

          Activity

            People

            • Assignee:
              iklam Ioi Lam
              Reporter:
              iklam Ioi Lam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: