Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-97

Make o.a.c.chain2.impl.ChainBase thread safe

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: Base
    • Labels:
      None

      Description

      ChainBase is not thread safe. For example there is a race condition in addCommand(CMD) where. The current implementation first checks the flag frozen and then acts based on the value of frozen. Another thread may have already altered the value of frozen.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              britter Benedikt Ritter
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: