Skip to content

Commit 4f9166c

Browse files
committed
Add suppression for 1.93+ std::thread::new()
Apparently the `std::thread`-module was restructured, so that the `std::thread::Thread`-type now resides in `std::thread::thread::Thread` instead, thus the suppression needs to be updated as well. Instead of changing the old one, a new one is added to stay compatible with 1.84.
1 parent ad8e006 commit 4f9166c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

suppressions/std::thread::new

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
fun:_ZN3std3sys12thread_local6native4lazy20Storage*
1010
fun:_ZN3std4sync4mpmc4list16Channel$LT$T$GT$4recv*
1111
}
12+
{
13+
std::thread::new() in Rust 1.93+
14+
Memcheck:Leak
15+
match-leak-kinds: possible
16+
fun:malloc
17+
fun:_ZN3std6thread6thread6Thread3new*
18+
fun:_ZN3std6thread7current12init_current*
19+
fun:_ZN3std4sync4mpmc7context7Context3new*
20+
fun:_ZN3std3sys12thread_local6native4lazy20Storage*get_or_init_slow*
21+
fun:_ZN3std4sync4mpmc4list16Channel*
22+
}
1223
{
1324
std::thread::new() in Rust 1.86+
1425
Memcheck:Leak

0 commit comments

Comments
 (0)