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

[lworld] Move return value null checks into the callee

XMLWordPrintable

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

      Roland said:
      "Another related change to move null checks out of the common path would be to null check return values in the callee rather than the caller and then deoptimize the caller if it is compiled. That would require a runtime check in the interpreter but in new code we would statically know that a value being returned is not null and so would have no check (unless the value returned is a null literal)."

            iklam Ioi Lam
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: