8376760: VerifyJimage.java#compare intermittent failed with fastdebug

Reviewed-by: liach, alanb
This commit is contained in:
SendaoYan 2026-02-04 07:30:46 +00:00
parent 1069ccebcc
commit 7e8fad625a

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2026, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -145,15 +145,9 @@ public abstract class VerifyJimage implements Runnable {
pool.execute(new ModuleResourceComparator(rootDir, modName, jimage));
}
}
pool.shutdown();
if (!pool.awaitTermination(20, TimeUnit.SECONDS)) {
failed.add("Directory verification timed out");
}
pool.close();
} catch (IOException ex) {
throw new UncheckedIOException(ex);
} catch (InterruptedException e) {
failed.add("Directory verification was interrupted");
Thread.currentThread().interrupt();
}
}