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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 16
    • 16
    • core-libs
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: