Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-519

Race condition with Solver.getBestSolution()

XMLWordPrintable

    • NEW
    • NEW

      Solver.getBestSolution() is suppose to be thread safe, but DefaultSolverScope says

          protected transient Solution bestSolution;
      

      instead of

          protected volatile Solution bestSolution;
      

      Ouch.

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: