@@ -1081,10 +1081,10 @@ void testSetDaemon2() throws Exception {
1081
1081
}
1082
1082
1083
1083
/**
1084
- * Test Thread.yield releases carrier.
1084
+ * Test Thread.yield releases carrier thread .
1085
1085
*/
1086
1086
@ Test
1087
- void testYieldReleases () throws Exception {
1087
+ void testYield1 () throws Exception {
1088
1088
assumeTrue (ThreadBuilders .supportsCustomScheduler (), "No support for custom schedulers" );
1089
1089
var list = new CopyOnWriteArrayList <String >();
1090
1090
try (ExecutorService scheduler = Executors .newFixedThreadPool (1 )) {
@@ -1112,7 +1112,7 @@ void testYieldReleases() throws Exception {
1112
1112
* Test Thread.yield releases carrier when virtual thread holds a monitor.
1113
1113
*/
1114
1114
@ Test
1115
- void testYieldReleasesWhenHoldingMonitor () throws Exception {
1115
+ void testYield2 () throws Exception {
1116
1116
assumeTrue (Platform .isX64 (), "x64 only at this time" );
1117
1117
assumeTrue (ThreadBuilders .supportsCustomScheduler (), "No support for custom schedulers" );
1118
1118
var list = new CopyOnWriteArrayList <String >();
@@ -1144,7 +1144,7 @@ void testYieldReleasesWhenHoldingMonitor() throws Exception {
1144
1144
* Test Thread.yield when thread is pinned by native frame.
1145
1145
*/
1146
1146
@ Test
1147
- void testYieldWhenPinned () throws Exception {
1147
+ void testYield3 () throws Exception {
1148
1148
assumeTrue (ThreadBuilders .supportsCustomScheduler (), "No support for custom schedulers" );
1149
1149
var list = new CopyOnWriteArrayList <String >();
1150
1150
try (ExecutorService scheduler = Executors .newFixedThreadPool (1 )) {
@@ -1172,7 +1172,7 @@ void testYieldWhenPinned() throws Exception {
1172
1172
* Test Thread.yield does not consume the thread's parking permit.
1173
1173
*/
1174
1174
@ Test
1175
- void testYieldDoesNotConsumeParkingPermit () throws Exception {
1175
+ void testYield4 () throws Exception {
1176
1176
var thread = Thread .ofVirtual ().start (() -> {
1177
1177
LockSupport .unpark (Thread .currentThread ());
1178
1178
Thread .yield ();
@@ -1185,7 +1185,7 @@ void testYieldDoesNotConsumeParkingPermit() throws Exception {
1185
1185
* Test Thread.yield does not make available the thread's parking permit.
1186
1186
*/
1187
1187
@ Test
1188
- void testYieldDoesNotGrantParkingPermit () throws Exception {
1188
+ void testYield5 () throws Exception {
1189
1189
var thread = Thread .ofVirtual ().start (() -> {
1190
1190
Thread .yield ();
1191
1191
LockSupport .park (); // should park
0 commit comments