-
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
Loom Support #7367
Loom Support #7367
Conversation
Some thread states during a test
Think we need to avoid object.wait in loom backend. |
Looks good.
|
@swankjesse Seems ok replacing wait/notify. What are next steps? Respond to loom email? Split out the Condition changes? Or roll them out more widely? |
Closing for now, blocked on okio for complete support. |
# Conflicts: # gradle/wrapper/gradle-wrapper.properties # settings.gradle.kts
Failing on
|
okhttp/src/jvmMain/kotlin/okhttp3/internal/concurrent/TaskQueue.kt
Outdated
Show resolved
Hide resolved
@@ -68,7 +74,7 @@ class TaskRunner( | |||
} finally { | |||
// If the task is crashing start another thread to service the queues. | |||
if (!completedNormally) { | |||
synchronized(this@TaskRunner) { | |||
lock.withLock { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Being able to avoid the hazard of dereferencing the wrong this
is a very nice improvement
)) | ||
|
||
constructor( | ||
connectionListener: ConnectionListener = ConnectionListener.NONE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: surprising that the new parameter is first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can reorder. It seemed right to me. But should we go full Builder mode on it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow up #7631
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No Builder.
Is there a release date for this support in okhttpclient? |
Change the synchronized/wait/notify calls to Lock/Condition.
Also change OkHttpClientTestRule to configure Loom in the default test client.