Skip to content

Commit

Permalink
Prefer nilable getter over direct ivar access
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Müller <straightshoota@gmail.com>
  • Loading branch information
ysbaddaden and straight-shoota authored May 2, 2024
1 parent ef7d957 commit 7b39409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gc/boehm.cr
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ module GC

{% if flag?(:preview_mt) %}
Thread.unsafe_each do |thread|
if fiber = thread.@current_fiber
if fiber = thread.current_fiber?
GC.set_stackbottom(thread.gc_thread_handler, fiber.@stack_bottom)
end
end
Expand Down

0 comments on commit 7b39409

Please sign in to comment.