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

Remove volatile-qualified member functions and parameters from oop class

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • 15
    • hotspot
    • None
    • b25

      The oop class and its subclasses are made more complicated by the presence of volatile qualified member functions and parameters. Those overloads exist to support operations on volatile oop values. But such values exist as the conventional mechanism for noting a variable is accessed by multiple threads and needs special handling. The intended semantics for these bare volatile variable accesses is really relaxed atomic, and it would be better to actually use such. Doing so would eliminate the need for the volatile qualifications in the member functions.

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

              Created:
              Updated:
              Resolved: