-
Notifications
You must be signed in to change notification settings - Fork 10
Flaky test - j9 OSR #239
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
Flaky test - j9 OSR #239
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,13 +51,18 @@ public void after() { | |
| @TestTemplate | ||
| @ValueSource(strings = {"vm", "vmx", "fp", "dwarf"}) | ||
| public void test(@CStack String cstack) { | ||
| String config = System.getProperty("ddprof_test.config"); | ||
| boolean isSanitizer = config.endsWith("san"); | ||
| boolean isJvmci = System.getProperty("java.vm.version", "").contains("jvmci"); | ||
| assumeFalse(Platform.isZing() || Platform.isJ9()); | ||
| // Skip test entirely on unsupported JVMs (don't use assumeFalse which gets retried) | ||
| if (Platform.isZing() || Platform.isJ9()) { | ||
| return; | ||
| } | ||
| // Running vm stackwalker tests on JVMCI (Graal), JDK 24, aarch64 and with a sanitizer is crashing in a weird place | ||
| // This looks like the sanitizer instrumentation is breaking the longjump based crash recovery :( | ||
| assumeFalse(Platform.isJavaVersionAtLeast(24) && isJvmci && Platform.isAarch64() && cstack.startsWith("vm") && isSanitizer); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand the usage of assume here ? Is this expected ?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are running on JDK 17 - one of the conditions is Java >=24 So yes. This is expected. |
||
| String config = System.getProperty("ddprof_test.config"); | ||
| boolean isJvmci = System.getProperty("java.vm.version", "").contains("jvmci"); | ||
| boolean isSanitizer = config.endsWith("san"); | ||
| if (Platform.isJavaVersionAtLeast(24) && isJvmci && Platform.isAarch64() && cstack.startsWith("vm") && isSanitizer) { | ||
| return; | ||
| } | ||
|
|
||
| long result = 0; | ||
| for (int i = 0; i < 10; i++) { | ||
|
|
||
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.
Ouch. This should not be the case. I will take a look at the
@TestTemplateengine ...