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

A race condition in SubmissionPublisher

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      None. This is a conservative spec clarification.
    • Interface Kind:
      Java API
    • Scope:
      JDK

      Description

      Summary

      Add the usual happens-before sentences to the SubmissionPublisher class spec.

      Problem

      Adding these clarifies that the reported problem (and possibly others) should be considered a bug.

      Solution

      Add a paragraph to class-level spec. There are no compatibility or other risks in doing so.

      Specification

      Add the following:

      * A single SubmissionPublisher may be shared among multiple
      * sources. Actions in a source thread prior to publishing an item or
      * issuing a signal <a href="package-summary.html#MemoryVisibility">
      * <i>happen-before</i></a> actions subsequent to the corresponding
      * access by each subscriber. But reported estimates of lag and demand
      * are designed for use in monitoring, not for synchronization
      * control, and may reflect stale or inaccurate views of progress.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dl Doug Lea
                Reporter:
                prappo Pavel Rappo
                Reviewed By:
                Paul Sandoz (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: