Skip to content
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

8268131: 2 java/foreign tests timed out #4321

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -28,7 +28,7 @@
* @modules jdk.incubator.foreign/jdk.internal.foreign
* @build NativeTestHelper CallGeneratorHelper TestDowncall
*
* @run testng/othervm
* @run testng/othervm/timeout=720
* --enable-native-access=ALL-UNNAMED
* TestDowncall
*/
@@ -127,7 +127,14 @@ public void testSharedMultiThread(Supplier<Cleaner> cleanerSupplier) {
// if no cleaner, close - not all segments might have been added to the scope!
// if cleaner, don't unset the scope - after all, the scope is kept alive by threads
if (cleaner == null) {
scope.close();
while (true) {
try {
scope.close();
break;
} catch (IllegalStateException ise) {
// scope is acquired (by add) - wait some more
}
}
}

threads.forEach(t -> {
@@ -28,7 +28,7 @@
* @modules jdk.incubator.foreign/jdk.internal.foreign
* @build NativeTestHelper CallGeneratorHelper TestUpcall
*
* @run testng/othervm
* @run testng/othervm/timeout=720
* --enable-native-access=ALL-UNNAMED
* TestUpcall
*/