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

A race condition in SubmissionPublisher

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 10
    • core-libs
    • None
    • behavioral
    • minimal
    • None. This is a conservative spec clarification.
    • Java API
    • JDK

      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.

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

              Created:
              Updated:
              Resolved: