diff --git a/allocator/src/lib.rs b/allocator/src/lib.rs index 26ee40e1e6a08..edeb7b8060e9c 100644 --- a/allocator/src/lib.rs +++ b/allocator/src/lib.rs @@ -162,7 +162,7 @@ impl GcAllocator { } pub fn thread_registered() -> bool { - unsafe { boehm::GC_thread_is_registered() == 0 } + unsafe { boehm::GC_thread_is_registered() != 0 } } pub fn allow_register_threads() {