8328312: runtime/stack/Stack0*.java fails intermittently on libgraal
Reviewed-by: lmesnik, dholmes
This commit is contained in:
parent
cd534f8197
commit
d379afbc11
@ -36,7 +36,7 @@
|
|||||||
* stack overflow, and then tries to provoke similar stack overflows
|
* stack overflow, and then tries to provoke similar stack overflows
|
||||||
* 10 times in each of 10 threads. Each provocation consists of
|
* 10 times in each of 10 threads. Each provocation consists of
|
||||||
* invoking that recursive method for the given fixed depth
|
* invoking that recursive method for the given fixed depth
|
||||||
* of invocations which is 10 times that depth measured before.
|
* of invocations which is 100 times that depth measured before.
|
||||||
* The test is deemed passed, if VM have not crashed, and
|
* The test is deemed passed, if VM have not crashed, and
|
||||||
* if exception other than due to stack overflow was not
|
* if exception other than due to stack overflow was not
|
||||||
* thrown.
|
* thrown.
|
||||||
@ -75,7 +75,7 @@ public class Stack011 extends Thread {
|
|||||||
Stack011 threads[] = new Stack011[THREADS];
|
Stack011 threads[] = new Stack011[THREADS];
|
||||||
for (int i = 0; i < threads.length; i++) {
|
for (int i = 0; i < threads.length; i++) {
|
||||||
threads[i] = new Stack011();
|
threads[i] = new Stack011();
|
||||||
threads[i].depthToTry = 10 * maxDepth;
|
threads[i].depthToTry = 100 * maxDepth;
|
||||||
threads[i].start();
|
threads[i].start();
|
||||||
}
|
}
|
||||||
for (int i = 0; i < threads.length; i++) {
|
for (int i = 0; i < threads.length; i++) {
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
* stack overflow, and then tries to provoke similar stack overflows
|
* stack overflow, and then tries to provoke similar stack overflows
|
||||||
* 10 times in each of 10 threads. Each provocation consists of
|
* 10 times in each of 10 threads. Each provocation consists of
|
||||||
* invoking that recursive method for the given fixed depth
|
* invoking that recursive method for the given fixed depth
|
||||||
* of invocations which is 10 times that depth measured before.
|
* of invocations which is 100 times that depth measured before.
|
||||||
* The test is deemed passed, if VM have not crashed, and
|
* The test is deemed passed, if VM have not crashed, and
|
||||||
* if exception other than due to stack overflow was not
|
* if exception other than due to stack overflow was not
|
||||||
* thrown.
|
* thrown.
|
||||||
@ -77,7 +77,7 @@ public class Stack012 extends Thread {
|
|||||||
Stack012 threads[] = new Stack012[THREADS];
|
Stack012 threads[] = new Stack012[THREADS];
|
||||||
for (int i = 0; i < threads.length; i++) {
|
for (int i = 0; i < threads.length; i++) {
|
||||||
threads[i] = new Stack012();
|
threads[i] = new Stack012();
|
||||||
threads[i].depthToTry = 10 * maxDepth;
|
threads[i].depthToTry = 100 * maxDepth;
|
||||||
threads[i].start();
|
threads[i].start();
|
||||||
}
|
}
|
||||||
for (int i = 0; i < threads.length; i++) {
|
for (int i = 0; i < threads.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user