8354565: jtreg failure handler GatherProcessInfoTimeoutHandler has a leftover call to System.loadLibrary

Reviewed-by: alanb, kbarrett
This commit is contained in:
Jaikiran Pai 2025-04-16 01:57:57 +00:00
parent a2dc9c71e4
commit 5526490743

View File

@ -36,19 +36,7 @@ import java.nio.file.Path;
* A timeout handler for jtreg, which gathers information about the timed out
* process and its children.
*/
@SuppressWarnings("restricted")
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 OUTPUT_FILENAME = "processes.html";