Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8255124

KeepAliveStreamCleaner may crash with java.lang.IllegalMonitorStateException: current thread is not owner

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b22

      Description

      KeepAliveStreamCleaner may crash with:

      ---
      java.lang.IllegalMonitorStateException: current thread is not owner
              at java.base/java.lang.Object.wait(Native Method)
              at java.base/sun.net.www.http.KeepAliveStreamCleaner.run(KeepAliveStreamCleaner.java:118)
              at java.base/java.lang.Thread.run(Thread.java:832)
      [catch] at java.base/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:134)
      ---

      The reason is that the calls Condition.wait (i.e. the Object method) instead of Condition.await.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlahoda Jan Lahoda
              Reporter:
              jlahoda Jan Lahoda
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: