diff --git a/test/hotspot/jtreg/serviceability/jvmti/ObjectMonitorUsage/ObjectMonitorUsage.java b/test/hotspot/jtreg/serviceability/jvmti/ObjectMonitorUsage/ObjectMonitorUsage.java index eb34b5cebdf9c..ab5cdcea63bd3 100644 --- a/test/hotspot/jtreg/serviceability/jvmti/ObjectMonitorUsage/ObjectMonitorUsage.java +++ b/test/hotspot/jtreg/serviceability/jvmti/ObjectMonitorUsage/ObjectMonitorUsage.java @@ -41,7 +41,9 @@ * - all the above scenarios are executed with platform and virtual threads * @requires vm.continuations * @requires vm.jvmti - * @run main/othervm/native -agentlib:ObjectMonitorUsage ObjectMonitorUsage + * @run main/othervm/native + * -Djdk.virtualThreadScheduler.parallelism=10 + * -agentlib:ObjectMonitorUsage ObjectMonitorUsage */ public class ObjectMonitorUsage {