mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 12:34:32 +02:00
7170203: TEST_BUG: test/java/nio/MappedByteBuffer/Truncate.java failing intermittently
Reviewed-by: chegar
This commit is contained in:
parent
d11c407c11
commit
66b51d0b9f
1 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,11 @@ public class Truncate {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Thread t = new Thread(r);
|
Thread t = new Thread(r);
|
||||||
|
t.setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||||
|
public void uncaughtException(Thread t, Throwable e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
});
|
||||||
t.start();
|
t.start();
|
||||||
try { t.join(); } catch (InterruptedException ignore) { }
|
try { t.join(); } catch (InterruptedException ignore) { }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue