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

OrderAccess::load_acquire &etc should have const parameters

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 10
    • 9
    • hotspot
    • None
    • b21
    • generic
    • generic

    Description

      The signatures for the various OrderAccess::load_acquire overloads are presently of the form

        T load_acquire(volatile T* p);

      It seems like that should be

        T load_acquire(const volatile T* p);

      Similarly for load_ptr_acquire (note that there are presently two overloads for load_ptr_acquire for void*, one const-qualified, and one not. The non-const-qualified overfload should be removed.

      Similarly for Atomic::load(volatile jlong*).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: