-
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
Add loom pinning tests #8289
Add loom pinning tests #8289
Conversation
@@ -169,8 +169,7 @@ subprojects { | |||
|
|||
if (platform == "loom") { | |||
jvmArgs( | |||
"-Djdk.tracePinnedThread=full", | |||
"--enable-preview" | |||
"-Djdk.tracePinnedThreads=short", |
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.
note: the s was missing.
|
@swankjesse Going to land even though it has a failing test for loom. The break is real, and I'd like to fix. requesting post review, tests and CI only. |
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.
LGTM
val platform = PlatformRule() | ||
|
||
@Container | ||
val mockServer: MockServerContainer = MockServerContainer(MOCKSERVER_IMAGE) |
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.
Why isn’t this using MockWebServer?!
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'll put a comment. I only wanted to fail on the client side. Not to test our mockwebserver is loom compliant also.
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.
Makes sense. I’d like to also fix MockWebServer to be compliant!
|
||
executor = newVirtualThreadPerTaskExecutor() | ||
|
||
System.setOut(PrintStream(capturedOut)) |
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.
What’s this for?
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 don't have a programmatic way to detect loom blocking. Just capture this warning.
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.
Gotcha.
No description provided.