[lworld] C1 ValueTypeReturnedAsFields should check if method return value is never null

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • repo-valhalla
    • Affects Version/s: repo-valhalla
    • Component/s: hotspot
    • None

      C1 should implement ValueTypeReturnedAsFields for method calls/returns only if ciMethod::signature()->returns_never_null() returns true. E.g., for a method like the following, which can possibly return a null value

          V? get_nullable_V() {...}

      C1 should handle it just as a regular method that returns a reference type.

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

              Created:
              Updated:
              Resolved: