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

GC/Boehm: Silence GC warnings about big allocations. #11289

Merged
merged 4 commits into from
Oct 24, 2021
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
Next Next commit
Add comment explaining why, and reorder to clarify comment scope.
  • Loading branch information
yxhuvud committed Oct 7, 2021
commit fd1e64c521343601608e9cf1533d836308773c2c
4 changes: 3 additions & 1 deletion src/gc/boehm.cr
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,12 @@ module GC
{% end %}
LibGC.init

LibGC.set_warn_proc ->(_msg, _v) {}
LibGC.set_start_callback ->do
GC.lock_write
end
# By default the GC warns on big allocations/reallocations. This
# is of limited use and pollutes program output with warnings.
LibGC.set_warn_proc ->(_msg, _v) {}
end

def self.collect
Expand Down