mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-17 10:20:33 +00:00
6815126: intermittent SimulResumerTest.java failure
Reviewed-by: jbachorik, sla
This commit is contained in:
parent
5eb8520ff1
commit
f963ced878
@ -177,12 +177,18 @@ public class SimulResumerTest extends TestScaffold {
|
||||
List<StackFrame> frames = thr.frames();
|
||||
// no failure return value here; could cause an NPE
|
||||
|
||||
int nframes = frames.size();
|
||||
if (nframes > 0) {
|
||||
// hmm, how could it ever be 0?
|
||||
kind = "frames(0, size - 1)";
|
||||
kind = "frames(0, size - 1)";
|
||||
System.out.println("kind = " + kind);
|
||||
thr.frames(0, frames.size() - 1);
|
||||
int nframes = frames.size();
|
||||
while (nframes > 0) {
|
||||
try {
|
||||
thr.frames(0, nframes - 1);
|
||||
break;
|
||||
} catch (IndexOutOfBoundsException iobe) {
|
||||
// 6815126. let's try to get less frames
|
||||
iobe.printStackTrace();
|
||||
nframes--;
|
||||
}
|
||||
}
|
||||
|
||||
kind = "frameCount()";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user