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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 16
    • 16
    • core-libs
    • None
    • b22

      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.

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated:
              Resolved: