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

Generalize Atomic::xchg to use templates

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 10
    • 10
    • hotspot
    • None
    • b31

    Description

      Reimplement Atomic::xchg as templates. 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 xchg with type-safe xchg. 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::xchg.

      Attachments

        Issue Links

          Activity

            People

              eosterlund Erik Ă–sterlund
              eosterlund Erik Ă–sterlund
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: