diff --git a/doc/testing.html b/doc/testing.html index c56dfa31188..b74661b3924 100644 --- a/doc/testing.html +++ b/doc/testing.html @@ -434,7 +434,7 @@ GB/2.

Sets the argument -timeoutHandlerTimeout for JTReg. The default value is 0. This is only valid if the failure handler is built.

-

JTREG_TEST_THREAD_FACTORY

+

TEST_THREAD_FACTORY

Sets the -testThreadFactory for JTReg. It should be the fully qualified classname of a class which implements java.util.concurrent.ThreadFactory. One such implementation diff --git a/doc/testing.md b/doc/testing.md index 351745c9293..cdc9bbd2182 100644 --- a/doc/testing.md +++ b/doc/testing.md @@ -380,7 +380,7 @@ Defaults to 4. Sets the argument `-timeoutHandlerTimeout` for JTReg. The default value is 0. This is only valid if the failure handler is built. -#### JTREG_TEST_THREAD_FACTORY +#### TEST_THREAD_FACTORY Sets the `-testThreadFactory` for JTReg. It should be the fully qualified classname of a class which implements `java.util.concurrent.ThreadFactory`. One diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetObjectMonitorUsage/objmonusage001.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetObjectMonitorUsage/objmonusage001.java index c3c3cb31ebd..44da4f71eb2 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetObjectMonitorUsage/objmonusage001.java +++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetObjectMonitorUsage/objmonusage001.java @@ -63,7 +63,7 @@ public class objmonusage001 { } // Virtual threads are not supported by GetObjectMonitorUsage. // Correct the expected values if the test is executed with - // JTREG_TEST_THREAD_FACTORY=Virtual. + // JTREG="TEST_THREAD_FACTORY=Virtual". Thread expOwner = mainThread.isVirtual() ? null : mainThread; int expEntryCount = mainThread.isVirtual() ? 0 : 1; @@ -157,7 +157,7 @@ class objmonusage001a extends Thread { public void run() { // Virtual threads are not supported by GetObjectMonitorUsage. // Correct the expected values if the test is executed with - // JTREG_TEST_THREAD_FACTORY=Virtual. + // JTREG="TEST_THREAD_FACTORY=Virtual". Thread expOwner = this.isVirtual() ? null : this; Thread expNotifyWaiter = mainThread.isVirtual() ? null : mainThread; int expEntryCount = this.isVirtual() ? 0 : 1; diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetObjectMonitorUsage/objmonusage004.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetObjectMonitorUsage/objmonusage004.java index 8d79a6011f5..172d16445c1 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetObjectMonitorUsage/objmonusage004.java +++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetObjectMonitorUsage/objmonusage004.java @@ -62,7 +62,7 @@ public class objmonusage004 { synchronized (lockCheck) { // Virtual threads are not supported by GetObjectMonitorUsage. // Correct the expected values if the test is executed with - // JTREG_TEST_THREAD_FACTORY=Virtual. + // JTREG="TEST_THREAD_FACTORY=Virtual". Thread expOwner = currThread.isVirtual() ? null : currThread; int expEntryCount = currThread.isVirtual() ? 0 : 2;