Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
8268566: java/foreign/TestResourceScope.java timed out
Browse files Browse the repository at this point in the history
Reviewed-by: jvernee
  • Loading branch information
mcimadamore committed Jul 1, 2021
1 parent 6c76e77 commit e377397
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/jdk/java/foreign/TestResourceScope.java
Expand Up @@ -46,7 +46,7 @@

public class TestResourceScope {

final static int N_THREADS = 10000;
final static int N_THREADS = 100;

@Test(dataProvider = "cleaners")
public void testConfined(Supplier<Cleaner> cleanerSupplier) {
Expand Down Expand Up @@ -206,10 +206,6 @@ public void testLockSharedMultiThread(Supplier<Cleaner> cleanerSupplier) {
}).start();
}

while (lockCount.get() == 0) {
waitSomeTime(); // make sure some thread gets scheduled
}

while (true) {
try {
scope.close();
Expand Down

1 comment on commit e377397

@openjdk-notifier
Copy link

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.