Skip to content

Commit

Permalink
8342646: JTREG_TEST_THREAD_FACTORY in testing.md should be TEST_THREA…
Browse files Browse the repository at this point in the history
…D_FACTORY
  • Loading branch information
sendaoYan committed Oct 20, 2024
1 parent 309b929 commit f1aab5d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ <h4 id="failure_handler_timeout">FAILURE_HANDLER_TIMEOUT</h4>
<p>Sets the argument <code>-timeoutHandlerTimeout</code> for JTReg. The
default value is 0. This is only valid if the failure handler is
built.</p>
<h4 id="jtreg_test_thread_factory">JTREG_TEST_THREAD_FACTORY</h4>
<h4 id="test_thread_factory">TEST_THREAD_FACTORY</h4>
<p>Sets the <code>-testThreadFactory</code> for JTReg. It should be the
fully qualified classname of a class which implements
<code>java.util.concurrent.ThreadFactory</code>. One such implementation
Expand Down
2 changes: 1 addition & 1 deletion doc/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f1aab5d

Please sign in to comment.