1
1
/*
2
- * Copyright (c) 2001, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2001, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -134,8 +134,8 @@ private static void log3(String message) {
134
134
private int runThis (String argv [], PrintStream out ) {
135
135
136
136
Debugee debuggee ;
137
- boolean usingWrapper = System .getProperty ("main.wrapper " ) != null ;
138
- boolean usingVThreadWrapper = "Virtual" .equals (System .getProperty ("main.wrapper " ));
137
+ boolean usingTTF = System .getProperty ("test.thread.factory " ) != null ;
138
+ boolean usingVirtualTTF = "Virtual" .equals (System .getProperty ("test.thread.factory " ));
139
139
140
140
argsHandler = new ArgumentHandler (argv );
141
141
logHandler = new Log (out , argsHandler );
@@ -253,10 +253,10 @@ private int runThis (String argv[], PrintStream out) {
253
253
* the "VirtualThreads" ThreadGroup, and threfore do not show up in group1.
254
254
*/
255
255
int expectedNumThreads ;
256
- if (usingVThreadWrapper ) {
256
+ if (usingVirtualTTF ) {
257
257
expectedNumThreads = 1 ;
258
258
} else {
259
- expectedNumThreads = usingWrapper ? 3 : 2 ;
259
+ expectedNumThreads = usingTTF ? 3 : 2 ;
260
260
}
261
261
if (threads .size () < expectedNumThreads ) {
262
262
log3 ("ERROR: threads.size() < 2 for group1 : " + threads .size () );
@@ -277,7 +277,7 @@ private int runThis (String argv[], PrintStream out) {
277
277
if (s1 .equals ("Thread2" ))
278
278
nThread2 += 1 ;
279
279
}
280
- if (nMain != 1 && !usingVThreadWrapper ) {
280
+ if (nMain != 1 && !usingVirtualTTF ) {
281
281
log3 ("ERROR: # of 'main' threads != 1 : " + nMain );
282
282
expresult = 1 ;
283
283
}
0 commit comments