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

JMH: The interrupt to time-outing benchmark can be delivered to warmdown latches

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • tools
    • None
    • jmh

      First sighted here:
        https://mail.openjdk.java.net/pipermail/jmh-dev/2021-July/003325.html

      This whole thing is guaranteed to fail if a long-running @Benchmark does not check interrupt status at all. Then the first thing that would check it and throw IE would be the control.preTearDown in warmdown loop.

      Then it fails: the method runs for too long, so JMH starts to deliver interrupts, but method does not react and eventually exits on its own accord, at which point JMH infra catches IE and fails hard.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: