[PPC64] Unify interface of cmpxchg for different types

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 24
    • Component/s: hotspot
    • b13
    • ppc

      Currently, cmpxchd uses one more argument than cmpxchgw, cmpxchgh and cmpxchgb and supports more features:
      - cmpxchd supports specifying a Label for the failure branch target.
      - cmpxchd supports specifying an immediate value for compare_value by using RegisterOrConstant.
      These feature are also useful for the other types.
      In addition, it is confusing not to have the same argument list. (The extra temp registers for cmpxchgh and cmpxchgb are only needed for older processors and can be removed with JDK-8331859.)

            Assignee:
            Martin Doerr
            Reporter:
            Martin Doerr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: