diff --git a/doc/testing.html b/doc/testing.html index c56dfa3118833..b74661b39247a 100644 --- a/doc/testing.html +++ b/doc/testing.html @@ -434,7 +434,7 @@

FAILURE_HANDLER_TIMEOUT

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 351745c9293c5..cdc9bbd2182c7 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 c3c3cb31ebd27..1e33445ee7d4d 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 static int run(String argv[], PrintStream out) { } // Virtual threads are not supported by GetObjectMonitorUsage. // Correct the expected values if the test is executed with - // JTREG_TEST_THREAD_FACTORY=Virtual. + // TEST_THREAD_FACTORY=Virtual. Thread expOwner = mainThread.isVirtual() ? null : mainThread; int expEntryCount = mainThread.isVirtual() ? 0 : 1; @@ -157,7 +157,7 @@ public objmonusage001a(Thread mt, int i, Object s) { 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. + // 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 8d79a6011f581..b977659227689 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 static int run(String args[], PrintStream out) { synchronized (lockCheck) { // Virtual threads are not supported by GetObjectMonitorUsage. // Correct the expected values if the test is executed with - // JTREG_TEST_THREAD_FACTORY=Virtual. + // TEST_THREAD_FACTORY=Virtual. Thread expOwner = currThread.isVirtual() ? null : currThread; int expEntryCount = currThread.isVirtual() ? 0 : 2;