Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use toArray with an array constructor for the scheduler waiters
  • Loading branch information
sampokuokkanen committed Oct 1, 2026
commit 21c5f72a6e35c1586734561b58fc437a8fa1a1da
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/util/io/OpenFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -2988,7 +2988,7 @@ public void interruptSchedulerWaiters(ThreadContext context) {

SchedulerWaiter[] waiters;
synchronized (schedulerWaiters) {
waiters = schedulerWaiters.toArray(new SchedulerWaiter[0]);
waiters = schedulerWaiters.toArray(SchedulerWaiter[]::new);
}

for (SchedulerWaiter waiter : waiters) {
Expand Down
Loading