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

g1ConcurrentMark is missing volatile specifiers for _finger

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      inapplicable
    • CPU:
      generic
    • OS:
      generic

      Description

      The _finger field of G1ConcurrentMark is part of a lock-free protocol, yet is missing a volatile specifier, which leads to less robust behavior.

      The behavior is more robust with volatiles turned on, and our helmets should always be on.

      This is related to JDK-8033552, but was split out due to the large size of the work being done there.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eosterlund Erik Ă–sterlund
                Reporter:
                eosterlund Erik Ă–sterlund
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: