8354565: jtreg failure handler GatherProcessInfoTimeoutHandler has a leftover call to System.loadLibrary
Reviewed-by: alanb, kbarrett
This commit is contained in:
parent
a2dc9c71e4
commit
5526490743
@ -36,19 +36,7 @@ import java.nio.file.Path;
|
|||||||
* A timeout handler for jtreg, which gathers information about the timed out
|
* A timeout handler for jtreg, which gathers information about the timed out
|
||||||
* process and its children.
|
* process and its children.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("restricted")
|
|
||||||
public class GatherProcessInfoTimeoutHandler extends TimeoutHandler {
|
public class GatherProcessInfoTimeoutHandler extends TimeoutHandler {
|
||||||
private static final boolean HAS_NATIVE_LIBRARY;
|
|
||||||
static {
|
|
||||||
boolean value = true;
|
|
||||||
try {
|
|
||||||
System.loadLibrary("timeoutHandler");
|
|
||||||
} catch (UnsatisfiedLinkError ignore) {
|
|
||||||
// not all os need timeoutHandler native-library
|
|
||||||
value = false;
|
|
||||||
}
|
|
||||||
HAS_NATIVE_LIBRARY = value;
|
|
||||||
}
|
|
||||||
private static final String LOG_FILENAME = "processes.log";
|
private static final String LOG_FILENAME = "processes.log";
|
||||||
private static final String OUTPUT_FILENAME = "processes.html";
|
private static final String OUTPUT_FILENAME = "processes.html";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user