Skip to content

Commit 28479a4

Browse files
authored
Fix: don't lazy initialize execution contexts linked list (#15596)
It's pointless because we always add the default context anyway. Let's make the initialization explicit.
1 parent 5762d2e commit 28479a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fiber/execution_context.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module Fiber::ExecutionContext
3030
end
3131

3232
# :nodoc:
33-
protected class_getter(execution_contexts) { Thread::LinkedList(ExecutionContext).new }
33+
protected class_getter execution_contexts = Thread::LinkedList(ExecutionContext).new
3434

3535
# :nodoc:
3636
property next : ExecutionContext?

0 commit comments

Comments
 (0)