Skip to content

Commit

Permalink
Do not suppress all Boehm warnings
Browse files Browse the repository at this point in the history
If something goes wrong during a GC, we likely want to know what
happened.

It's not totally clear whether this is the correct way to disable
warnings anyway (it uses some deprecated library features in Boehm).
Annoying warnings (such as those for many large page allocations) can be
disabled individually.
  • Loading branch information
jacob-hughes committed Nov 15, 2023
1 parent 24eddde commit 6138ad6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions library/std/src/rt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ unsafe fn init(argc: isize, argv: *const *const u8, sigpipe: u8) {
// handler next time. The is not true in the reverse case.
alloc::gc::init();

// Boehm GC prints OOM warnings which are useful for debugging, but
// annoying when building the compiler in release mode.
alloc::gc::suppress_warnings();

sys::init(argc, argv, sigpipe);

let main_guard = sys::thread::guard::init();
Expand Down

0 comments on commit 6138ad6

Please sign in to comment.