Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: init schedulers before we spawn fibers #14339

Merged
Changes from all commits
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
12 changes: 6 additions & 6 deletions src/kernel.cr
Original file line number Diff line number Diff line change
Expand Up @@ -563,12 +563,6 @@ end
{% end %}

{% unless flag?(:interpreted) || flag?(:wasm32) %}
{% if flag?(:win32) %}
Crystal::System::Process.start_interrupt_loop
{% else %}
Crystal::System::Signal.setup_default_handlers
{% end %}

# load debug info on start up of the program is executed with CRYSTAL_LOAD_DEBUG_INFO=1
# this will make debug info available on print_frame that is used by Crystal's segfault handler
#
Expand All @@ -579,4 +573,10 @@ end
Exception::CallStack.setup_crash_handler

Crystal::Scheduler.init

{% if flag?(:win32) %}
Crystal::System::Process.start_interrupt_loop
{% else %}
Crystal::System::Signal.setup_default_handlers
{% end %}
{% end %}
Loading