Blackhole.consume(Object) retains consumed objects

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • None
    • Affects Version/s: None
    • Component/s: tools
    • None
    • jmh

      Regression. Before CODETOOLS-7901735, Blackhole used to clear its sinks on each iteration. Combined with the usual @State object lifecycle and exponential backoff in consume(Object) method, that meant Blackhole accepted a few objects on warmup iterations, and by the time measurement happened it never captured the objects.

      With CODETOOLS-7901735 it changed, and how Blackhole is instantiated for each iteration, capturing objects. This should be fixed back.

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

              Created:
              Updated:
              Resolved: