Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8272600: (test) Use native "sleep" in #5239

wants to merge 6 commits into from
Changes from 1 commit
File filter

Filter by extension

Filter by extension

Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -2449,8 +2449,10 @@ public void run() {
long start = System.nanoTime();

if (p.waitFor(10, TimeUnit.MILLISECONDS)) {
System.out.println("WaitFor didn't wait long enough: " + (System.nanoTime() - start));
var msg = "External sleep process terminated early: exitValue: %d, (%dns)%n"
.formatted(p.exitValue(), (System.nanoTime() - start));

long end = System.nanoTime();
if ((end - start) < TimeUnit.MILLISECONDS.toNanos(10))