Generalize Atomic::add with templates

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 10
    • Component/s: hotspot
    • None
    • b22
    • generic
    • generic

      Reimplement Atomic::add 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 add_ptr with type-safe add. 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::add.

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

              Created:
              Updated:
              Resolved: