File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
test/hotspot/jtreg/vmTestbase/nsk/share/runner Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 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" ))) {
You can’t perform that action at this time.
0 commit comments