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

[PPC64] Unify interface of cmpxchg for different types

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • 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.)

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

              Created:
              Updated:
              Resolved: