Skip to content

Commit d8aba6b

Browse files
committed
FFM concurrent close adjust wait seconds with timeout
1 parent 407b677 commit d8aba6b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/jdk/java/foreign/TestConcurrentClose.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2026, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -28,7 +28,7 @@
2828
* @key randomness
2929
* @library /test/lib
3030
*
31-
* @build jdk.test.whitebox.WhiteBox
31+
* @build jdk.test.whitebox.WhiteBox jdk.test.lib.Utils
3232
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
3333
*
3434
* @run testng/othervm/timeout=480
@@ -40,6 +40,7 @@
4040
* TestConcurrentClose
4141
*/
4242

43+
import jdk.test.lib.Utils;
4344
import jdk.test.whitebox.WhiteBox;
4445
import org.testng.annotations.Test;
4546

@@ -72,7 +73,7 @@ public class TestConcurrentClose {
7273

7374
static final int ITERATIONS = 5;
7475
static final int SEGMENT_SIZE = 10_000;
75-
static final int MAX_EXECUTOR_WAIT_SECONDS = 60;
76+
static final long MAX_EXECUTOR_WAIT_SECONDS = Utils.adjustTimeout(60);
7677
static final int NUM_ACCESSORS = 50;
7778

7879
static final AtomicLong start = new AtomicLong();

0 commit comments

Comments
 (0)