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

Atomic - remove duplication and improve unsigned type support

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Other
    • P4
    • 10
    • 1.3.0
    • hotspot
    • generic
    • generic

    Description

      The Atomic class is a platform-independent interface to platform-specific methods for instructions such as cas, xchg, cmpxchg, etc. The implementation contains unnecessary code duplication and the support for unsigned types is incomplete. As an example of the code duplication, the method
        cmpxchg_ptr(void *new_val, volatile void *dest, void *old_val)
      has a body defined in each of the platform-specific files when a single platform-independent version would be sufficient.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jcoomes John Coomes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: