@@ -100,11 +100,6 @@ public final class Target_java_lang_VirtualThread {
100
100
@ TargetElement (onlyWith = JDK21OrEarlier .class ) //
101
101
private static ScheduledExecutorService UNPARKER ;
102
102
103
- @ Alias //
104
- @ InjectAccessors (DelayedTaskSchedulersAccessor .class ) //
105
- @ TargetElement (onlyWith = JDKLatest .class ) //
106
- private static ScheduledExecutorService [] DELAYED_TASK_SCHEDULERS ;
107
-
108
103
/** Go through {@link #nondefaultScheduler}. */
109
104
@ Alias //
110
105
@ InjectAccessors (SchedulerAccessor .class ) //
@@ -134,10 +129,6 @@ public final class Target_java_lang_VirtualThread {
134
129
@ TargetElement (onlyWith = JDK21OrEarlier .class )
135
130
private static native ScheduledExecutorService createDelayedTaskScheduler ();
136
131
137
- @ Alias
138
- @ TargetElement (onlyWith = JDKLatest .class )
139
- private static native ScheduledExecutorService [] createDelayedTaskSchedulers ();
140
-
141
132
@ SuppressWarnings ("unused" )
142
133
private static final class AlwaysFalseAccessor {
143
134
static boolean get (Target_java_lang_VirtualThread vt ) {
@@ -192,28 +183,6 @@ private static synchronized ScheduledExecutorService initializeDelayedTaskSchedu
192
183
}
193
184
}
194
185
195
- private static final class DelayedTaskSchedulersAccessor {
196
- private static volatile ScheduledExecutorService [] delayedTaskSchedulers ;
197
-
198
- @ SuppressWarnings ("unused" )
199
- public static ScheduledExecutorService [] get () {
200
- ScheduledExecutorService [] result = delayedTaskSchedulers ;
201
- if (result == null ) {
202
- result = initializeDelayedTaskScheduler ();
203
- }
204
- return result ;
205
- }
206
-
207
- private static synchronized ScheduledExecutorService [] initializeDelayedTaskScheduler () {
208
- ScheduledExecutorService [] result = delayedTaskSchedulers ;
209
- if (result == null ) {
210
- result = createDelayedTaskSchedulers ();
211
- delayedTaskSchedulers = result ;
212
- }
213
- return result ;
214
- }
215
- }
216
-
217
186
@ SuppressWarnings ("unused" )
218
187
private static final class SchedulerAccessor {
219
188
static Executor get (Target_java_lang_VirtualThread self ) {
0 commit comments