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

[lworld] Ensure VarHandle compare and set/exchange work for value types

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: core-libs
    • Labels:

      Description

      VarHandle compare and set/exchange need to behave consistently for value type fields whether they be flattened (at runtime) or not.

      This requires that value equality be performed when the field is not flattened. Therefore, the existing VarHandles for refs cannot for non-flattened fields since CAS/CAE related instructions will be used the references to the values and will produce incorrect results.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchung Mandy Chung
                Reporter:
                psandoz Paul Sandoz
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: