8268566: java/foreign/TestResourceScope.java timed out

Reviewed-by: jvernee
(cherry picked from commit e3773977cf)
This commit is contained in:
Maurizio Cimadamore
2021-07-01 16:28:48 +00:00
committed by Vitaly Provodin
parent 3ca10f742d
commit fbcff00d33

View File

@@ -46,7 +46,7 @@ import java.util.stream.IntStream;
public class TestResourceScope {
final static int N_THREADS = 10000;
final static int N_THREADS = 100;
@Test(dataProvider = "cleaners")
public void testConfined(Supplier<Cleaner> cleanerSupplier) {
@@ -206,10 +206,6 @@ public class TestResourceScope {
}).start();
}
while (lockCount.get() == 0) {
waitSomeTime(); // make sure some thread gets scheduled
}
while (true) {
try {
scope.close();