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

[lworld] ReturnNodes should not keep value type allocations alive

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: hotspot
    • Labels:

      Description

      When value types are returned as fields from compiled code, we may also return the oop if the value type is allocated. I've noticed that sometimes otherwise unused value type allocations are kept alive only by a ReturnNode. In this case, the value type allocation should be removed and a tagged klass pointer should be returned instead.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                roland Roland Westrelin
                Reporter:
                thartmann Tobias Hartmann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: