Skip to content
Permalink
Browse files
8268131: 2 java/foreign tests timed out
Reviewed-by: dcubed
  • Loading branch information
mcimadamore committed Jun 3, 2021
1 parent 5405f98 commit 52d8215a1ec42d67217505fe3167c70460f5a639
Showing 3 changed files with 10 additions and 3 deletions.
@@ -28,7 +28,7 @@
* @modules jdk.incubator.foreign/jdk.internal.foreign
* @build NativeTestHelper CallGeneratorHelper TestDowncall
*
* @run testng/othervm
* @run testng/othervm/timeout=240
* --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=240
* --enable-native-access=ALL-UNNAMED
* TestUpcall
*/

1 comment on commit 52d8215

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 52d8215 Jun 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.