Skip to content

Commit f42eb59

Browse files
committed
Drop weak LockThread test, add Thread spawning stress test to replace.
LockThread's primary issue was fixed in r145796, and remaining issue only occurred occasionally. ThreadTest exercises this more directly. git-svn-id: https://llvm.org/svn/llvm-project/vmkit/trunk@145798 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 633f87e commit f42eb59

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

tests/LockThread.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

tests/ThreadTest.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
public class ThreadTest extends Thread {
2+
public void run() {
3+
// Nothing
4+
}
5+
6+
public static void main(String[] args) throws InterruptedException {
7+
for(int i = 0; i < 10000; ++i) {
8+
Thread t1 = new ThreadTest();
9+
Thread t2 = new ThreadTest();
10+
t1.start();
11+
t2.start();
12+
13+
t1.join();
14+
t2.join();
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)