Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901809

Failing @Setup can be entered multiple times

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
      jmh

      Description

      See the real-world example here:
        http://stackoverflow.com/questions/39687217/how-to-setup-jmh-testing-for-orientdb-embedded

      In short, when multithreaded benchmark tries to initialize @State(Benchmark) with @Setup, and one thread fails it, then *other* threads can enter the @Setup, breaking the invariant. We might want to let the threads treat that @State object as initialized, and fail downstream.

        Attachments

          Activity

            People

            • Assignee:
              shade Aleksey Shipilev
              Reporter:
              shade Aleksey Shipilev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: