OrderAccess::load_acquire &etc should have const parameters

XMLWordPrintable

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

      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*).

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

              Created:
              Updated:
              Resolved: