Skip to content

Commit 97f4f00

Browse files
committed
8373917: test/hotspot/jtreg/vmTestbase/nsk/monitoring: -iterations setting misused in tests
Reviewed-by: lmesnik
1 parent c6246d5 commit 97f4f00

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/hotspot/jtreg/vmTestbase/nsk/share/runner/RunParams.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 2025, 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
@@ -221,8 +221,13 @@ else if (args[i].equals("-t"))
221221
numberOfThreads = Integer.parseInt(args[++i]);
222222
else if (args[i].equals("-it"))
223223
interruptThreads = true;
224-
else if (args[i].equals("-iterations"))
224+
else if (args[i].equals("-iterations")) {
225+
// e.g. "-iterations 3"
225226
iterations = Integer.parseInt(args[++i]);
227+
} else if (args[i].startsWith("-iterations=")) {
228+
// e.g. "-iterations=3"
229+
iterations = Integer.parseInt(args[i].substring(12));
230+
}
226231
}
227232
// Allow to force using vthreads using wrapper property
228233
if ("Virtual".equals(System.getProperty("test.thread.factory"))) {

0 commit comments

Comments
 (0)