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

Generalize Atomic::cmpxchg with templates

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 10
    • 10
    • hotspot
    • None
    • b22
    • generic
    • generic

    Description

      Reimplement Atomic::cmpxchg as a template. One goal is to generalize the API and make it more type-safe, eliminating the need for most casts. This includes replacing the type-information-losing cmpxchg_ptr with type-safe cmpxchg. Another goal is to allow more direct platform-specific implementation of the generic operation, for platforms that support that via generic intrinsics.

      Subtask of JDK-8184334, addressing only Atomic::cmpxchg.

      Attachments

        Issue Links

          Activity

            People

              kbarrett Kim Barrett
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: