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.
---
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
- relates to
-
JDK-8229867 Re-examine synchronization usages in http and https protocol handlers
- Resolved
There are no Sub-Tasks for this issue.