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

Generalize Atomic::inc/dec with templates

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b31

      Description

      Reimplement Atomic::inc/dec 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 inc/dec_ptr with type-safe inc/dec. 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::inc/dec.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: