-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Virtual thread pinning with 5.0.0-alpha.12 #8284
Comments
Thanks, for the report, I'll take a look this weekend. And try to set up a test to automate this check. |
Not quite sure how you would automate the detection of virtual thread pinning in a test without hacky hooks. Can you recommend any tool? |
I'm just capturing System.out |
First set of core fixes #8290 |
Would it be possible to provide a build of the latest commit? You can call me lazy, but i can't build it myself due to not having android setup on my machine. Possibly providing a jar for every branch via github actions? |
Any plan to fix this in near future with a new release? |
Snapshots are available here : https://s01.oss.sonatype.org/content/repositories/snapshots/com/squareup/okhttp3/okhttp/5.0.0-SNAPSHOT/ |
okhttp/okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt
Line 376 in bad2ebc
This line causes virtual thread pinning in the latest alpha (5.0.0-alpha.12).
Reason is the use of a ReentrantLock (in TaskQueue.schedule) inside a synchronized block when using a connection pool with a
maxIdleConnection
.Log output with JVM argument
-Djdk.tracePinnedThreads=full
:How to reproduce
-Djdk.tracePinnedThreads=full
The text was updated successfully, but these errors were encountered: